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!)
A331919 Number of compositions (ordered partitions) of n into distinct tetrahedral numbers. 3
1, 1, 0, 0, 1, 2, 0, 0, 0, 0, 1, 2, 0, 0, 2, 6, 0, 0, 0, 0, 1, 2, 0, 0, 2, 6, 0, 0, 0, 0, 2, 6, 0, 0, 6, 25, 2, 0, 0, 2, 6, 0, 0, 0, 0, 2, 6, 0, 0, 6, 24, 0, 0, 0, 0, 2, 7, 2, 0, 6, 26, 6, 0, 0, 0, 6, 26, 6, 0, 24, 126, 24, 0, 0, 0, 0, 2, 6, 0, 0, 6, 24, 0, 0, 1, 2, 6, 24, 2, 6, 24 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
LINKS
EXAMPLE
a(15) = 6 because we have [10, 4, 1], [10, 1, 4], [4, 10, 1], [4, 1, 10], [1, 10, 4] and [1, 4, 10].
MAPLE
N:= 200: # for a(0)..a(N)
G:= mul(1+t*x^(i*(i+1)*(i+2)/6), i=1..floor((6*N)^(1/3))):
F:= proc(n) local R, k, v;
R:= coeff(G, x, n);
add(k!*coeff(R, t, k), k=1..degree(R, t))
end proc:
F(0):= 1:
map(F, [$0..N]); # Robert Israel, Feb 03 2020
MATHEMATICA
M = 100;
G = Product[1 + t x^(i(i+1)(i+2)/6), {i, 1, Floor[(6M)^(1/3)]}];
F[n_] := Module[{R, k, v}, R = Coefficient[G, x, n]; Sum[k! Coefficient[R, t, k], {k, 1, Exponent[R, t]}]];
F[0] = 1;
F /@ Range[0, M] (* Jean-François Alcover, Jun 20 2020, after Robert Israel *)
CROSSREFS
Sequence in context: A339088 A025907 A024157 * A332005 A039968 A092037
KEYWORD
nonn,look
AUTHOR
Ilya Gutkovskiy, Feb 01 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 24 12:22 EDT 2024. Contains 371937 sequences. (Running on oeis4.)