A024796 Numbers expressible in more than one way as i^2 + j^2 + k^2, where 1 <= i <= j <= k.
27, 33, 38, 41, 51, 54, 57, 59, 62, 66, 69, 74, 75, 77, 81, 83, 86, 89, 90, 94, 98, 99, 101, 102, 105, 107, 108, 110, 113, 114, 117, 118, 121, 122, 123, 125, 126, 129, 131, 132, 134, 137, 138, 139, 141, 146, 147, 149, 150, 152, 153, 154, 155, 158, 161, 162, 164, 165, 166, 170
Offset: 1
Keywords
Links
- Robert Price, Table of n, a(n) for n = 1..8057
Crossrefs
Programs
-
Mathematica
okQ[n_]:= Length[Select[PowersRepresentations[n, 3, 2], !MemberQ[#, 0] &]] > 1; (* Jinyuan Wang, Feb 12 2019 *)
-
PARI
is(n)=if(n<27, return(0)); if(n%4==0, return(is(n/4))); my(w); for(i=sqrtint((n-1)\3)+1,sqrtint(n-2), my(t=n-i^2); for(j=sqrtint((t-1)\2)+1,min(sqrtint(t-1),i), if(issquare(t-j^2), w++>1 && return(1)))); 0 \\ Charles R Greathouse IV, Aug 05 2024
Formula
{n: A025427(n) > 1 }. - R. J. Mathar, Aug 05 2022
Comments