arithmoi-0.8.0.0: Efficient basic number-theoretic functions.

Copyright(c) 2018 Alexandre Rodrigues Baldé
LicenseMIT
MaintainerAlexandre Rodrigues Baldé <alexandrer_b@outlook.com>
StabilityProvisional
PortabilityNon-portable (GHC extensions)
Safe HaskellSafe
LanguageHaskell2010

Math.NumberTheory.Recurrencies

Description

 
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
>>> partition !! 1000 :: Mod 1000
(991 `modulo` 1000)