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!)
A039897 Number of partitions satisfying 0 < cn(2,5) + cn(3,5). 1
0, 0, 1, 2, 3, 4, 7, 11, 17, 23, 32, 44, 63, 85, 114, 149, 198, 260, 341, 436, 559, 712, 910, 1149, 1446, 1803, 2254, 2803, 3478, 4282, 5267, 6453, 7905, 9635, 11716, 14191, 17180, 20735, 24985, 29998, 35965, 43019, 51404, 61257, 72880, 86510, 102580, 121405 (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 < 2 + 3 (OMBBp).
LINKS
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) in {2, 3}, 1, t)))))
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[2 <= Mod[i, 5] <= 3, 1, t]]]]]; a[n_] := b[n, n, 0]; Table[a[n], {n, 0, 50}] (* Jean-François Alcover, Nov 12 2015, after Alois P. Heinz *)
CROSSREFS
Sequence in context: A221997 A221998 A165407 * A297789 A222122 A222024
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 April 19 18:05 EDT 2024. Contains 371798 sequences. (Running on oeis4.)