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!)
A219347 Number of partitions of n into distinct parts with smallest possible largest part. 2
1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 1, 1, 1, 3, 2, 2, 1, 1, 1, 4, 3, 2, 2, 1, 1, 1, 5, 4, 3, 2, 2, 1, 1, 1, 6, 5, 4, 3, 2, 2, 1, 1, 1, 8, 6, 5, 4, 3, 2, 2, 1, 1, 1, 10, 8, 6, 5, 4, 3, 2, 2, 1, 1, 1, 12, 10, 8, 6, 5, 4, 3, 2, 2, 1, 1, 1, 15, 12, 10, 8, 6, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,8
COMMENTS
Size of the smallest possible largest part is floor(sqrt(2*n)+1/2) = A002024(n). Records occur at 0, 7, and A000124(k) for k>=5.
LINKS
EXAMPLE
a(0) = 1: [].
a(7) = 2: [4,2,1], [4,3].
a(16) = 3: [6,4,3,2,1], [6,5,3,2], [6,5,4,1].
a(22) = 4: [7,5,4,3,2,1], [7,6,4,3,2], [7,6,5,3,1], [7,6,5,4].
MAPLE
g:= proc(n, i) option remember; local s; s:=i*(i+1)/2;
`if`(n=s, 1, `if`(n>s, 0, g(n, i-1)+ `if`(i>n, 0, g(n-i, i-1))))
end:
a:= n-> g(n, floor(sqrt(2*n)+1/2)):
seq (a(n), n=0..120);
MATHEMATICA
g[n_, i_] := g[n, i] = Module[{s = i(i+1)/2}, If[n == s, 1, If[n > s, 0, g[n, i - 1] + If[i > n, 0, g[n - i, i - 1]]]]];
a[n_] := g[n, Floor[Sqrt[2n] + 1/2]];
a /@ Range[0, 120] (* Jean-François Alcover, Dec 10 2020, after Alois P. Heinz *)
CROSSREFS
Cf. A000009 (records), A219339.
Sequence in context: A137350 A334607 A166240 * A114087 A215521 A008284
KEYWORD
nonn,look
AUTHOR
Alois P. Heinz, Nov 18 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 29 04:19 EDT 2024. Contains 372097 sequences. (Running on oeis4.)