The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A039901 Number of partitions satisfying 0 < cn(1,5) + cn(2,5) + cn(3,5) and 0 < cn(4,5) + cn(2,5) + cn(3,5). 1
0, 0, 1, 2, 3, 5, 8, 12, 18, 25, 37, 49, 68, 91, 123, 165, 215, 278, 362, 465, 603, 760, 962, 1209, 1524, 1911, 2374, 2934, 3629, 4471, 5514, 6728, 8208, 9982, 12139, 14720, 17772, 21390, 25732, 30889, 37049, 44231, 52749, 62782, 74671, 88640 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
For a given partition cn(i,n) means the number of its parts equal to i modulo n.
Short: o < 1 + 2 + 3 and o < 4 + 2 + 3 (OMAABBp).
LINKS
MAPLE
b:= proc(n, i, t, s) option remember; `if`(n=0, t*s,
`if`(i<1, 0, b(n, i-1, t, s)+ `if`(i>n, 0,
b(n-i, i, `if`(irem(i, 5) in {0, 4}, t, 1),
`if`(irem(i, 5) in {0, 1}, s, 1)))))
end:
a:= n-> b(n$2, 0$2):
seq(a(n), n=0..50); # Alois P. Heinz, Apr 03 2014
MATHEMATICA
b[n_, i_, t_, s_] := b[n, i, t, s] = If[n == 0, t*s, If[i<1, 0, b[n, i-1, t, s] + If[i>n, 0, b[n-i, i, If[MemberQ[{0, 4}, Mod[i, 5]], t, 1], If[MemberQ[{0, 1}, Mod[i, 5]], s, 1]]]]]; a[n_] := b[n, n, 0, 0]; Table[a[n], {n, 0, 50}] (* Jean-François Alcover, Nov 12 2015, after Alois P. Heinz *)
CROSSREFS
Sequence in context: A299731 A252864 A039899 * A173564 A121946 A241823
KEYWORD
nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 17 19:01 EDT 2024. Contains 372603 sequences. (Running on oeis4.)