fast-arithmetic-0.2.3.1: Fast functions on integers.

CopyrightCopyright (c) 2017 Vanessa McHale
Safe HaskellNone
LanguageHaskell2010

Numeric.Combinatorics

Description

This provides a few facilities for working with common combinatorial functions.

Synopsis

Documentation

catalan :: Int -> IO Integer Source #

The nth Catalan number, with indexing beginning at 0. See here.

λ:> mapM catalan [0..9]
[1,1,2,5,14,42,132,429,1430,4862]