OFFSET
1,1
COMMENTS
The remainder of a(n) divided by 16 is less than 5. - Jinyuan Wang, Feb 03 2019
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
353 = 2^4 + 3^4 + 4^4, with 3 - 2 = 4 - 3 = 1;
7187 = 1^4 + 5^4 + 9^4, with 5 - 1 = 9 - 5 = 4.
MAPLE
N:= 10^5: # for all terms <= N
Res:= NULL:
for a from 1 to floor((N/3)^(1/4)) do
for d from 1 do
v:= a^4 + (a+d)^4 + (a+2*d)^4;
if v > N then break fi;
Res:= Res, v
od
od:
sort(convert({Res}, list)); # Robert Israel, Feb 17 2019
PROG
(PARI) for(n=1, 70000, k=(n/3)^(1/4); a=2; v=0; while(a<=k&&v==0, d=sqrt(sqrt(2*n+30*a^4)/2-3*a^2); if(d==truncate(d)&&d>=1&&d<=a-1, v=1; print1(n, ", ")); a+=1))
CROSSREFS
KEYWORD
nonn
AUTHOR
Antonio Roldán, Jan 29 2019
STATUS
approved