OFFSET
1,4
COMMENTS
EXAMPLE
Each of 1, 9, 17, 36 appear two times because
1=0^2+1^3=1^2+0^3, 9=1^2+2^3=3^2+0^3, 17=3^2+2^3==4^2+1^3, 36=3^2+3^3==6^2+0^3;
225 appears three times because 225=3^2+6^3=10^2+5^3=15^2+0^3;
1025 appears four times because 1025=5^2+10^3=30^2+5^3=31^2+4^3=32^2+1^3, etc.
MATHEMATICA
Lim=148; s=Ceiling[Sqrt[Lim]]; c=Ceiling[Lim^(1/3)]; sq=Range[0, s]^2; cb=Range[0, c]^3; seq={}; Do[AppendTo[seq, sq[[i]]+cb[[j]]], {i, s+1}, {j, c+1}]; Sort[Select[seq, #<=Lim&]] (* James C. McMahon, Nov 19 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 11 2006
STATUS
approved