OFFSET
1,1
EXAMPLE
28 is a term because 28 = 1^3 + 3^3 and 28 is the sum of 4 but no fewer nonzero squares.
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