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!)
A209817 Number of partitions of 3n in which every part is <n. 2
0, 1, 5, 19, 54, 141, 331, 733, 1527, 3060, 5888, 11004, 19978, 35452, 61538, 104875, 175618, 289656, 470914, 755880, 1198693, 1880246, 2918919, 4488553, 6840398, 10337947, 15500575, 23070000, 34094908, 50055877, 73026093, 105902689, 152706404, 219004225 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
EXAMPLE
The 5 partitions of 9 with parts <3 are as follows:
2+2+2+2+1
2+2+2+1+1+1
2+2+1+1+1+1+1
2+1+1+1+1+1+1+1
1+1+1+1+1+1+1+1+1.
MAPLE
b:= proc(n, i) option remember; `if`(n=0, 1,
`if`(i<1, 0, b(n, i-1) +`if`(i>n, 0, b(n-i, i))))
end:
a:= n-> b(3*n, n-1):
seq(a(n), n=1..50); # Alois P. Heinz, Jul 09 2012
MATHEMATICA
f[n_] := Length[Select[IntegerPartitions[3 n], First[#] <= n - 1 &]]; Table[f[n], {n, 1, 25}] (* A209817 *)
b[n_, i_] := b[n, i] = If[n==0, 1, If[i<1, 0, b[n, i-1] + If[i>n, 0, b[n-i, i]]]]; a[n_] := b[3*n, n-1]; Table[a[n], {n, 1, 50}] (* Jean-François Alcover, Oct 28 2015, after Alois P. Heinz *)
CROSSREFS
Cf. A209818.
Sequence in context: A200764 A285987 A055365 * A281156 A060100 A053733
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 13 2012
EXTENSIONS
More terms from Alois P. Heinz, Jul 09 2012
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 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)