OFFSET
0,5
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
EXAMPLE
a(6) counts these 6 partitions: 51, 411, 321, 3111, 2211, 21111.
MAPLE
b:= proc(n, i, d) option remember; `if`(n=0, 1, `if`(i<=d, 0,
add(b(n-i*j, i-1, d+`if`(j=0, 0, 1)), j=0..n/i)))
end:
a:= n-> combinat[numbpart](n) -b(n$2, 0):
seq(a(n), n=0..80); # Alois P. Heinz, Apr 02 2014
MATHEMATICA
z = 50; d[p_] := d[p] = Length[DeleteDuplicates[p]]; f[n_] := f[n] = IntegerPartitions[n];
Table[Count[f[n], p_ /; d[p] < Min[p]], {n, 0, z}] (*A239948*)
Table[Count[f[n], p_ /; d[p] <= Min[p]], {n, 0, z}] (*A239949*)
Table[Count[f[n], p_ /; d[p] == Min[p]], {n, 0, z}] (*A239950*)
Table[Count[f[n], p_ /; d[p] > Min[p]], {n, 0, z}] (*A239951*)
Table[Count[f[n], p_ /; d[p] >= Min[p]], {n, 0, z}] (*A239952*)
b[n_, i_, d_] := b[n, i, d] = If[n==0, 1, If[i<=d, 0, Sum[b[n-i*j, i-1, d + If[j==0, 0, 1]], {j, 0, n/i}]]]; a[n_] := PartitionsP[n] - b[n, n, 0]; Table[a[n], {n, 0, 80}] (* Jean-François Alcover, Nov 17 2015, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Mar 30 2014
STATUS
approved