Copyright | (c) 2018 Alexandre Rodrigues Baldé |
---|---|
License | MIT |
Maintainer | Alexandre Rodrigues Baldé <alexandrer_b@outlook.com> |
Safe Haskell | Safe |
Language | Haskell2010 |
Deprecated: Use Recurrences
instead.
Synopsis
- module Math.NumberTheory.Recurrences.Linear
- module Math.NumberTheory.Recurrences.Bilinear
- partition :: Num a => [a]
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)