OFFSET
1,1
LINKS
R. J. Mathar, Table of n, a(n) for n = 1..6598
FORMULA
EXAMPLE
a(1)=17 because 17=3^2+2^2+2^2 = 4^2+1^2+0^2 and a(1)+1= 18=3^2+3^2+0^2 = 4^2+1^2+1^2
MATHEMATICA
Select[Range[200], Length@PowersRepresentations[#, 3, 2] > 1 && Length@PowersRepresentations[# + 1, 3, 2] > 1 &] (* Ray Chandler, Oct 31 2019 *)
PROG
(PARI) isCnt3sqr(n)={ local(cnt=0, z2) ; for(x=0, floor(sqrt(n)), for(y=x, floor(sqrt(n-x^2)), z2=n-x^2-y^2 ; if( z2>=y^2 && issquare(z2), cnt++ ; ) ; if(cnt >=2, return(1) ) ; ) ; ) ; return(0) ; } isA124971(n)= { return( isCnt3sqr(n) && isCnt3sqr(n+1)) ; } { for(n=1, 200, if( isA124971(n), print1(n, ", ") ; ) ; ) ; } - R. J. Mathar, Nov 29 2006
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Nov 14 2006
EXTENSIONS
Corrected and extended by Ray Chandler, Nov 30 2006
Corrected and extended by R. J. Mathar, Nov 29 2006
STATUS
approved