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!)
A341040 Number T(n,k) of partitions of n into k distinct nonzero squares; triangle T(n,k), n>=0, 0<=k<=A248509(n), read by rows. 20
1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0
COMMENTS
T(n,k) is defined for n, k >= 0. The triangle contains only the terms with 0 <= k <= A248509(n). T(n,k) = 0 for k > A248509(n).
LINKS
FORMULA
T(n,k) = [x^n*y^k] Product_{j>=1} (1 + y*x^(j^2)).
T(A000330(n),n) = 1.
Row n = [0] <=> n in { A001422 }.
Sum_{k>=0} 2^k * T(n,k) = A279360(n).
Sum_{k>=0} k * T(n,k) = A281542(n).
Sum_{k>=0} (-1)^k * T(n,k) = A276516(n).
EXAMPLE
T(62,3) = 2 is the first term > 1 and counts partitions [49,9,4] and [36,25,1].
Triangle T(n,k) begins:
1;
0, 1;
0;
0;
0, 1;
0, 0, 1;
0;
0;
0;
0, 1;
0, 0, 1;
0;
0;
0, 0, 1;
0, 0, 0, 1;
...
MAPLE
b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0,
b(n, i-1)+`if`(i^2>n, 0, expand(b(n-i^2, i-1)*x))))
end:
T:= n->(p->seq(coeff(p, x, i), i=0..max(0, degree(p))))(b(n, isqrt(n))):
seq(T(n), n=0..45);
MATHEMATICA
b[n_, i_] := b[n, i] = If[n == 0, 1, If[i < 1, 0,
b[n, i - 1] + If[i^2 > n, 0, Expand[b[n - i^2, i - 1]*x]]]];
T[n_] := CoefficientList[b[n, Floor@Sqrt[n]], x] /. {} -> {0};
T /@ Range[0, 45] // Flatten (* Jean-François Alcover, Feb 15 2021, after Alois P. Heinz *)
CROSSREFS
Columns k=0-10 give: A000007, A010052 (for n>0), A025441, A025442, A025443, A025444, A340988, A340998, A340999, A341000, A341001.
Row sums give A033461.
Sequence in context: A262693 A267423 A108340 * A257585 A285034 A266174
KEYWORD
nonn,look,tabf
AUTHOR
Alois P. Heinz, Feb 03 2021
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 25 09:35 EDT 2024. Contains 371967 sequences. (Running on oeis4.)