A215614 Numbers k that are not multiples of 10 and such that sum of digits of k^2 is 7.
4, 5, 32, 49, 149, 1049
Offset: 1
Crossrefs
Programs
-
Mathematica
Select[Range[1500],Mod[#,10]!=0&&Total[IntegerDigits[#^2]]==7&] (* Harvey P. Dale, Aug 21 2022 *)
-
PARI
for(n=1,9e9, n%10&&sumdigits(n^2)==7&&print1(n",")) \\ M. F. Hasler, Sep 23 2014
Extensions
Edited and unproven keywords fini,full removed by Max Alekseyev, Jun 20 2025
Comments