OFFSET
0,3
COMMENTS
For a given partition cn(i,n) means the number of its parts equal to i modulo n.
Short: o < 1 + 4 + 2 + 3 (OMAABBpp).
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
MAPLE
b:= proc(n, i, t) option remember; `if`(n=0, t,
`if`(i<1, 0, b(n, i-1, t)+ `if`(i>n, 0,
b(n-i, i, `if`(irem(i, 5)=0, t, 1)))))
end:
a:= n-> b(n$2, 0):
seq(a(n), n=0..50); # Alois P. Heinz, Apr 04 2014
MATHEMATICA
b[n_, i_, t_] := b[n, i, t] = If[n == 0, t, If[i < 1, 0, b[n, i - 1, t] + If[i > n, 0, b[n - i, i, If[Mod[i, 5] == 0, t, 1]]]]]; a[n_] := b[n, n, 0]; Table[a[n], {n, 0, 50}] (* Jean-François Alcover, Apr 15 2015, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved