login
A037549
Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,2.
0
1, 10, 82, 657, 5258, 42066, 336529, 2692234, 21537874, 172302993, 1378423946, 11027391570, 88219132561, 705753060490, 5646024483922, 45168195871377, 361345566971018, 2890764535768146, 23126116286145169, 185008930289161354
OFFSET
1,2
FORMULA
G.f.: x*(1+2*x+2*x^2) / ( (x-1)*(8*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 30 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {1, 2, 2}], 8], {n, 20}] (* or *) LinearRecurrence[ {8, 0, 1, -8}, {1, 10, 82, 657}, 20] (* Harvey P. Dale, Jun 25 2017 *)
CROSSREFS
Sequence in context: A362508 A232332 A154246 * A238276 A287825 A199701
KEYWORD
nonn,base,easy
EXTENSIONS
More terms from Harvey P. Dale, Jun 25 2017
STATUS
approved