arithmoi-0.9.0.0: Efficient basic number-theoretic functions.

Copyright(c) 2018 Alexandre Rodrigues Baldé
LicenseMIT
MaintainerAlexandre Rodrigues Baldé <alexandrer_b@outlook.com>
Safe HaskellSafe
LanguageHaskell2010

Math.NumberTheory.Recurrencies

Description

Deprecated: Use Recurrences instead.

Synopsis

Documentation

partition :: Num a => [a] Source #

Infinite zero-based table of partition numbers.

>>> take 10 partition
[1,1,2,3,5,7,11,15,22,30]
>>> :set -XDataKinds
>>> import Math.NumberTheory.Moduli.Class
>>> partition !! 1000 :: Mod 1000
(991 `modulo` 1000)