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!)
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 (list; graph; refs; listen; history; text; internal format)
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 *)
CROSSREFS
Sequence in context: A352758 A226803 A362494 * A230666 A113560 A094364
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Feb 20 2020
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 28 05:00 EDT 2024. Contains 372020 sequences. (Running on oeis4.)