login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A215614
Numbers n that are not multiples of 10 such that sum of digits of n^2 is 7.
2
4, 5, 32, 49, 149, 1049
OFFSET
1,1
COMMENTS
Sequence is complete.
Except for the number 1, these six and numbers 10^k+1 (A062397) are the only numbers (up to trailing 0's) whose square has sum of digits less than 9. - M. F. Hasler, Sep 23 2014
MATHEMATICA
Select[Range[1500], Mod[#, 10]!=0&&Total[IntegerDigits[#^2]]==7&] (* Harvey P. Dale, Aug 21 2022 *)
PROG
(PARI) for(n=1, 9e9, n%10&&sumdigits(n^2)==7&&print1(n", ")) \\ M. F. Hasler, Sep 23 2014
CROSSREFS
Cf. A004159 = Sum of digits of n^2.
Sequence in context: A335526 A373190 A262711 * A013468 A376536 A378079
KEYWORD
nonn,base,fini,full
AUTHOR
Zak Seidov, Aug 17 2012
STATUS
approved