|
|
A036058
|
|
Summarize digits of preceding number, by decreasing digit value. Start with a(0) = 0.
|
|
7
|
|
|
0, 10, 1110, 3110, 132110, 13123110, 23124110, 1413223110, 1423224110, 2413323110, 1433223110, 1433223110, 1433223110, 1433223110, 1433223110, 1433223110, 1433223110, 1433223110, 1433223110, 1433223110, 1433223110
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
This kind of counting sequence is always eventually periodic with period 1, 2 or 3. - Herve Lehning (lehning(AT)noos.fr), Oct 01 2003
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
The third term is 1110 because the second term contains one 1 and one 0.
|
|
PROG
|
(PARI) a(n)=if(n>9, 1433223110, [0, 10, 1110, 3110, 132110, 13123110, 23124110, 1413223110, 1423224110, 2413323110][n+1]) \\ Charles R Greathouse IV, Jul 24 2012
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy,nice
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|