Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A165550
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A165550 Sum of digits of square is sum of square of digits. +0
1
0, 1, 2, 3, 10, 20, 30, 33, 100, 200, 300, 330, 333, 1000, 1143, 1431, 2000, 2242, 3000, 3233, 3300, 3330, 3331, 3333, 3411, 3433, 4131, 10000, 11234, 11243, 11344, 11403, 11430, 11432, 11433, 12235, 12523, 13134, 13142, 13144, 13241, 13431, 13522 (list; graph; listen)
OFFSET

0,3

EXAMPLE

Consider n=33: n^2 is 1089, sum of square of digits is 3^2+3^2=18, and sum of digits of square is 1+0+8+9=18, thus 33 appears in the sequence.

PROGRAM

(PARI) digsum(n) = local(s=0); while(n, s=s+n%10; n=n\10); return(s) sqadigsum(n) = local(s=0); while(n, s=s+(n%10)^2; n=n\10); return(s) for(n=0, 100000, if(sqadigsum(n)==digsum(n^2), print1(n, ", ") ) )

CROSSREFS

Sequence in context: A156909 A122822 A083944 this_sequence A095919 A148044 A148045

Adjacent sequences: A165547 A165548 A165549 this_sequence A165551 A165552 A165553

KEYWORD

base,easy,nonn

AUTHOR

Remy Sigrist (remysigrist(AT)free.fr), Sep 21 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research