|
|
A118880
|
|
a(n) is the cube of the sum of digits of n.
|
|
3
|
|
|
0, 1, 8, 27, 64, 125, 216, 343, 512, 729, 1, 8, 27, 64, 125, 216, 343, 512, 729, 1000, 8, 27, 64, 125, 216, 343, 512, 729, 1000, 1331, 27, 64, 125, 216, 343, 512, 729, 1000, 1331, 1728, 64, 125, 216, 343, 512, 729, 1000, 1331, 1728, 2197, 125, 216, 343, 512
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
Trajectories of x->a(x), see A182128:
1 ->1 ->1 ->1 ->1 ->1 ->1 ->1 ->1 ->...
2 ->8 ->512 ->512 ->512 ->512 ->512 ->512 ->512 ->...
3 ->27 ->729 ->5832 ->5832 ->5832 ->5832 ->5832 ->5832 ->...
4 ->64 ->1000 ->1 ->1 ->1 ->1 ->1 ->1 ->...
5 ->125 ->512 ->512 ->512 ->512 ->512 ->512 ->512 ->...
6 ->216 ->729 ->5832 ->5832 ->5832 ->5832 ->5832 ->5832 ->...
7 ->343 ->1000 ->1 ->1 ->1 ->1 ->1 ->1 ->...
8 ->512 ->512 ->512 ->512 ->512 ->512 ->512 ->512 ->...
9 ->729 ->5832 ->5832 ->5832 ->5832 ->5832 ->5832 ->5832 ->...
10 ->1 ->1 ->1 ->1 ->1 ->1 ->1 ->1 ->...
11 ->8 ->512 ->512 ->512 ->512 ->512 ->512 ->512 ->...
12 ->27 ->729 ->5832 ->5832 ->5832 ->5832 ->5832 ->5832 ->...
13 ->64 ->1000 ->1 ->1 ->1 ->1 ->1 ->1 ->...
14 ->125 ->512 ->512 ->512 ->512 ->512 ->512 ->512 ->...
|
|
PROG
|
(Python)
def a(n): return sum(map(int, str(n)))**3
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,easy,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|