The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A320841 Number T(n,k) of partitions of n into k positive cubes; triangle T(n,k), n >= 0, 0 <= k <= n, read by rows. 7
1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0
LINKS
FORMULA
T(n,k) = [x^n y^k] 1/Product_{j>=1} (1 - y*x^(j^3)).
EXAMPLE
Triangle begins:
1;
0, 1;
0, 0, 1;
0, 0, 0, 1;
0, 0, 0, 0, 1;
0, 0, 0, 0, 0, 1;
0, 0, 0, 0, 0, 0, 1;
0, 0, 0, 0, 0, 0, 0, 1;
0, 1, 0, 0, 0, 0, 0, 0, 1;
0, 0, 1, 0, 0, 0, 0, 0, 0, 1;
0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1;
0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1;
0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1;
...
MAPLE
b:= proc(n, i, t) option remember; `if`(n=0, `if`(t=0, 1, 0),
`if`(i<1 or t<1, 0, b(n, i-1, t)+
`if`(i^3>n, 0, b(n-i^3, i, t-1))))
end:
T:= (n, k)-> b(n, iroot(n, 3), k):
seq(seq(T(n, k), k=0..n), n=0..16); # Alois P. Heinz, Dec 21 2018
MATHEMATICA
T[n_, k_] := Count[PowersRepresentations[n, k, 3], r_ /; FreeQ[r, 0]]; T[0, 0] = 1; Table[T[n, k], {n, 0, 14}, {k, 0, n}] // Flatten
(* Second program: *)
b[n_, i_, t_] := b[n, i, t] = If[n == 0, If[t == 0, 1, 0], If[i < 1 || t < 1, 0, b[n, i - 1, t] + If[i^3 > n, 0, b[n - i^3, i, t - 1]]]];
T[n_, k_] := b[n, n^(1/3) // Floor, k];
Table[T[n, k], {n, 0, 16}, {k, 0, n}] // Flatten (* Jean-François Alcover, Nov 08 2020, after Alois P. Heinz *)
CROSSREFS
Columns k=0..10 give A000007, A010057 (for n > 0), A025455, A025456, A025457, A025458, A025459, A025460, A025461, A025462, A025463.
Row sums give A003108.
Sequence in context: A363800 A134286 A023531 * A351725 A243148 A089495
KEYWORD
nonn,tabl
AUTHOR
Ilya Gutkovskiy, Dec 09 2018
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 May 14 20:39 EDT 2024. Contains 372533 sequences. (Running on oeis4.)