login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A332716
Number of compositions of n^2 where each part is less than or equal to n.
4
1, 1, 5, 149, 20569, 11749641, 26649774581, 236837126431501, 8237168505776637425, 1125036467745713090813969, 606147434557459526483161067501, 1293596348252277644272081532560154645, 10970544241076481629439275072320816659677161
OFFSET
0,3
COMMENTS
All terms are odd.
LINKS
FORMULA
a(n) = Sum_{i=0..n-1} A048004(n^2-1,i) for i > 0.
EXAMPLE
a(2) = 5: 22, 211, 121, 112, 1111.
MAPLE
b:= proc(n, k) option remember; `if`(n=0, 1,
add(b(n-d, k), d=1..min(n, k)))
end:
a:= n-> b(n^2, n):
seq(a(n), n=0..15);
MATHEMATICA
b[n_, k_] := b[n, k] = If[n == 0, 1, Sum[b[n - d, k], {d, 1, Min[n, k]}]];
a[n_] := b[n^2, n];
Table[a[n], {n, 0, 15}] (* Jean-François Alcover, Oct 31 2022, after Alois P. Heinz *)
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Feb 20 2020
STATUS
approved