login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A037546
Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,2.
0
1, 7, 37, 186, 932, 4662, 23311, 116557, 582787, 2913936, 14569682, 72848412, 364242061, 1821210307, 9106051537, 45530257686, 227651288432, 1138256442162, 5691282210811, 28456411054057, 142282055270287, 711410276351436
OFFSET
1,2
FORMULA
G.f.: x*(1+2*x+2*x^2) / ( (x-1)*(5*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 30 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {1, 2, 2}], 5], {n, 30}] (* or *) LinearRecurrence[ {5, 0, 1, -5}, {1, 7, 37, 186}, 30] (* Harvey P. Dale, May 08 2021 *)
CROSSREFS
Sequence in context: A356338 A117424 A192811 * A226867 A140476 A057651
KEYWORD
nonn,base,easy
STATUS
approved