|
|
A033136
|
|
Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,0.
|
|
0
|
|
|
1, 10, 90, 811, 7300, 65700, 591301, 5321710, 47895390, 431058511, 3879526600, 34915739400, 314241654601, 2828174891410, 25453574022690, 229082166204211, 2061739495837900, 18555655462541100, 167000899162869901, 1503008092465829110, 13527072832192461990
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
a(n+1) = 9*a(n) if n == 2 (mod 3), 9*a(n)+1 otherwise. - Robert Israel, Jul 15 2014
|
|
EXAMPLE
|
The first six terms have base 9 representations 1, 11, 110, 1101, 11011, 110110.
|
|
MATHEMATICA
|
Module[{nn=30, c}, c=PadRight[{}, nn, {1, 1, 0}]; Table[FromDigits[Take[c, n], 9], {n, nn}]] (* Harvey P. Dale, Aug 18 2014 *)
|
|
PROG
|
(PARI) Vec(x*(1+x) / ( (x-1)*(9*x-1)*(1+x+x^2) ) + O(x^50)) \\ Michel Marcus, Jul 15 2014
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|