Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A165551
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A165551 Sum of cube of digits is sum of digits of cube. +0
1
0, 1, 2, 10, 20, 31, 100, 103, 123, 200, 203, 301, 302, 310, 1000, 1003, 1030, 1230, 1302, 1312, 1321, 2000, 2003, 2030, 2312, 3001, 3002, 3010, 3020, 3032, 3100, 3112, 3211, 3213, 3221, 10000, 10003, 10030, 10033, 10232, 10300, 10303, 11223, 12033 (list; graph; listen)
OFFSET

0,3

EXAMPLE

For n=31, n^3=29791, sum of digits of cube is 2+9+7+9+1=28, sum of cube of digits is 3^3+1=27+1=28, thus 31 appears in the sequence.

PROGRAM

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

CROSSREFS

In context A055012, A007953

Sequence in context: A039560 A009342 A038103 this_sequence A139592 A120552 A090220

Adjacent sequences: A165548 A165549 A165550 this_sequence A165552 A165553 A165554

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 December 2 11:54 EST 2009. Contains 167921 sequences.


AT&T Labs Research