OFFSET
1,2
LINKS
Indranil Ghosh, Table of n, a(n) for n = 1..11130 (terms 1..1000 from Harry J. Smith)
EXAMPLE
179 is in the sequence because 179 + sum of digits of 179 = 179 + 17 = 196 which is a perfect square. - Indranil Ghosh, Feb 10 2017
MATHEMATICA
Select[Range[0, 2600], IntegerQ[Sqrt[#+Total[IntegerDigits[#]]]]&] (* Harvey P. Dale, May 19 2012 *)
PROG
(PARI) digitsum(n) = local(s, d); s = 0; while(n>0, d = divrem(n, 10); n = d[1]; s = s+d[2]); s
a066564(m) = local(n); for(n = 0, m, if(issquare(n+digitsum(n)), print1(n, ", ")))
a066564(10000)
(PARI) isok(n) = issquare(n + sumdigits(n)); \\ Michel Marcus, Jan 15 2016
(Magma) [n: n in [0..3*10^3] | IsSquare(&+Intseq(n)+n)]; // Vincenzo Librandi, Jan 15 2016
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Dec 18 2001
EXTENSIONS
More terms from Jason Earls, Dec 20 2001
STATUS
approved