OFFSET
0,7
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
EXAMPLE
a(8) counts these 4 partitions : 611, 3311, 32111, 22211.
MAPLE
b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0,
b(n, i-1)+`if`(i=1, 0, add(b(n-1-i*j, i-1), j=1..(n-1)/i))))
end:
a:= n-> `if`(n=0, 1, b(n-1$2)):
seq(a(n), n=0..70); # Alois P. Heinz, Apr 03 2014
MATHEMATICA
z = 54; d[p_] := d[p] = Length[DeleteDuplicates[p]]; Table[Count[IntegerPartitions[n], p_ /; d[p] == Count[p, 1]], {n, 0, z}]
(* Second program: *)
b[n_, i_] := b[n, i] = If[n == 0, 1, If[i < 1, 0, b[n, i - 1] + If[i == 1, 0, Sum[b[n - 1 - i*j, i - 1], {j, 1, (n - 1)/i}]]]]; a[n_] := If[n == 0, 1, b[n - 1, n - 1]]; Table[a[n], {n, 0, 70}] (* Jean-François Alcover, Aug 29 2016, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Mar 30 2014
STATUS
approved