OFFSET
1,1
COMMENTS
The first term that occurs in two or more different ways is 515375 = 15^3 + 80^3 = 54^3 + 71^3. - Robert Israel, May 18 2026
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
28 is a term because 28 = 1^3 + 3^3 and 28 is the sum of 4 but no fewer nonzero squares.
MAPLE
N:= 20000: # for terms <= N
R:= {}:
for a from 1 while 2*a^3 <= N do
R:= R union select(filter, {seq(a^3 + b^3, b=a .. floor((N-a^3)^(1/3)))})
od:
sort(convert(R, list)); # Robert Israel, May 18 2026
PROG
(PARI) isA004215(n) = {local(fouri, j) ; fouri=1 ; while( n >=7*fouri, if( n % fouri ==0, j= n/fouri -7 ; if( j % 8 ==0, return(1) ) ; ) ; fouri *= 4 ; ) ; return(0); }
isA003325(n) = {for(k=1, sqrtnint(n\2, 3), ispower(n-k^3, 3) && return(1)); }
lista(nn) = for(n=1, nn, if(isA004215(n) && isA003325(n), print1(n, ", ")));
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Altug Alkan, Apr 21 2016
STATUS
approved
