|
|
A037538
|
|
Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,1.
|
|
0
|
|
|
1, 7, 36, 181, 907, 4536, 22681, 113407, 567036, 2835181, 14175907, 70879536, 354397681, 1771988407, 8859942036, 44299710181, 221498550907, 1107492754536, 5537463772681, 27687318863407, 138436594317036, 692182971585181
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1+x)^2 / ( (x-1)*(5*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 30 2015
|
|
MATHEMATICA
|
Module[{nn=30, c}, c=PadRight[{}, nn, {1, 2, 1}]; Table[FromDigits[Take[c, i], 5], {i, nn}]] (* Harvey P. Dale, Jul 24 2012 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|