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!)
A115029 Number of partitions of n such that all parts, with the possible exception of the smallest, appear only once. 14

%I #27 Nov 21 2020 16:17:58

%S 1,1,2,3,5,6,10,12,17,22,29,36,48,59,73,93,114,139,171,207,250,304,

%T 361,432,517,613,722,856,1005,1178,1382,1612,1875,2184,2528,2927,3386,

%U 3900,4486,5159,5916,6772,7749,8843,10078,11482,13048,14811,16805,19026

%N Number of partitions of n such that all parts, with the possible exception of the smallest, appear only once.

%C Also number of partitions of n such that if k is the largest part, then k and all integers from 1 to some integer m, 0<=m<k, occur any number of times (if m = 0, then partition consists only of k's). Example: a(5)=6 because we have [5], [4,1], [3,1,1], [2,2,1], [2,1,1,1] and [1,1,1,1,1] ([3,2] does not qualify). - _Emeric Deutsch_, Apr 19 2006

%H Alois P. Heinz, <a href="/A115029/b115029.txt">Table of n, a(n) for n = 0..10000</a>

%F G.f.: 1+Sum_{k>=1} x^k/(1-x^k)*Product_{i>=k+1} (1+x^i).

%F G.f.: 1+Sum_{k>=1} (x^k/(1-x^k)) * Sum_{m=0..k-1} x^(m*(m+1)/2) / Product_{i=1..m} (1-x^i). - _Emeric Deutsch_, Apr 19 2006

%e a(5) = 6 because we have [5], [4,1], [3,2], [3,1,1], [2,1,1,1] and [1,1,1,1,1] ([2,2,1] does not qualify).

%p g:=1+sum(x^k/(1-x^k)*product(1+x^i,i=k+1..90),k=1..90): gser:=series(g,x=0,50): seq(coeff(gser,x,n),n=0..44); # _Emeric Deutsch_, Apr 19 2006

%p # second Maple program:

%p b:= proc(n, i) option remember; `if`(n=0 or i=1, 1, b(n, i-1)+

%p `if`(irem(n, i)=0, 1, 0)+`if`(n>i, b(n-i, i-1), 0))

%p end:

%p a:= n-> b(n$2):

%p seq(a(n), n=0..50); # _Alois P. Heinz_, Feb 03 2019

%t b[n_, i_] := b[n, i] = If[n == 0 || i == 1, 1, b[n, i - 1] + If[Mod[n, i] == 0, 1, 0] + If[n > i, b[n - i, i - 1], 0]];

%t a[n_] := b[n, n];

%t a /@ Range[0, 50] (* _Jean-François Alcover_, Nov 21 2020, after _Alois P. Heinz_ *)

%Y Cf. A034296.

%K easy,nonn

%O 0,3

%A _Vladeta Jovovic_, Feb 25 2006; corrected Mar 05 2006

%E a(0)=1 prepended by _Alois P. Heinz_, Feb 03 2019

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 September 17 12:38 EDT 2024. Contains 375987 sequences. (Running on oeis4.)