login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A064399 Numbers k whose sum of digits exceeds the sum of the digits of k^2. 6
39, 48, 49, 79, 149, 179, 249, 318, 348, 349, 389, 390, 399, 448, 449, 480, 489, 490, 498, 499, 548, 549, 579, 649, 679, 749, 789, 790, 795, 799, 849, 889, 895, 898, 899, 949, 1049, 1096, 1149, 1249, 1429, 1488, 1489, 1490, 1497, 1498, 1499, 1735, 1739 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
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
Sequence in context: A252711 A046512 A143746 * A235151 A050439 A199993
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Sep 28 2001
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 18 16:43 EDT 2024. Contains 375269 sequences. (Running on oeis4.)