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!)
A025460 Number of partitions of n into 7 positive cubes. 3

%I #23 Nov 23 2020 08:03:23

%S 0,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,1,0,0,0,0,1,

%T 0,1,0,0,0,0,1,0,1,0,0,0,0,1,0,1,0,0,0,0,1,0,1,0,0,1,0,1,0,0,0,0,1,0,

%U 1,0,1,0,0,1,0,1,0,1,0,0,1,0,0,0,1,1,0,1,0,0,0,1,1,0,1,0,1,0,1,1,0,0,0,1,0,1,1,0

%N Number of partitions of n into 7 positive cubes.

%C The first term > 1 is a(131) = 2. - _Michel Marcus_, Apr 23 2019

%H Alois P. Heinz, <a href="/A025460/b025460.txt">Table of n, a(n) for n = 0..65536</a>

%H <a href="/index/Su#ssq">Index entries for sequences related to sums of cubes</a>

%F a(n) = [x^n y^7] Product_{k>=1} 1/(1 - y*x^(k^3)). - _Ilya Gutkovskiy_, Apr 23 2019

%p b:= proc(n, i, t) option remember; `if`(n=0, `if`(t=0, 1, 0),

%p `if`(i<1 or t<1, 0, b(n, i-1, t)+

%p `if`(i^3>n, 0, b(n-i^3, i, t-1))))

%p end:

%p a:= n-> b(n, iroot(n, 3), 7):

%p seq(a(n), n=0..120); # _Alois P. Heinz_, Dec 21 2018

%t 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 a[n_] := b[n, n^(1/3) // Floor, 7];

%t a /@ Range[0, 120] (* _Jean-François Alcover_, Nov 23 2020, after _Alois P. Heinz_ *)

%Y Column k=7 of A320841.

%K nonn

%O 0,132

%A _David W. Wilson_

%E Second offset from _Michel Marcus_, Apr 23 2019

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 10:11 EDT 2024. Contains 371935 sequences. (Running on oeis4.)