login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Number of partitions of n into 3 nonnegative cubes.
4

%I #15 Jan 09 2023 07:41:01

%S 1,1,1,1,0,0,0,0,1,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,

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

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

%N Number of partitions of n into 3 nonnegative cubes.

%H Charles R Greathouse IV, <a href="/A025447/b025447.txt">Table of n, a(n) for n = 0..10000</a>

%o (PARI) a(n)=sum(a=0,sqrtnint(n,3), sum(b=0,a, my(C=n-a^3-b^3,c); ispower(C,3,&c) && 0 <= c && c <= b)) \\ _Charles R Greathouse IV_, Jun 26 2013

%o (PARI) a(n)=sum(a=0,sqrtnint(n,3), my(a3=a^3,c); sum(b=0,min(a,sqrtnint(n-a3,3)), ispower(n-a3-b^3,3,&c) && c <= b)) \\ _Charles R Greathouse IV_, Sep 16 2016

%K nonn

%O 0,217

%A _David W. Wilson_