login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
OFFSET
1,2
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
Sequence in context: A110310 A054493 A368575 * A037482 A147546 A333060
KEYWORD
nonn,base,easy
STATUS
approved