OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[ Range[ 2500 ], Apply[ Plus, IntegerDigits[ # ] ] > Apply[ Plus, IntegerDigits[ #^2 ] ] & ]
PROG
(PARI) SumD(x)= { local(s); s=0; while (x>9, s+=x-10*(x\10); x\=10); return(s + x) } { n=0; for (m=1, 10^9, if (SumD(m) > SumD(m^2), write("b064399.txt", n++, " ", m); if (n==1000, break)) ) } \\ Harry J. Smith, Sep 13 2009
(PARI) isok(n) = sumdigits(n) > sumdigits(n^2); \\ Michel Marcus, Jun 24 2018
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Sep 28 2001
STATUS
approved