login

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

A037776
Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 3,1,0,2.
0
3, 25, 200, 1602, 12819, 102553, 820424, 6563394, 52507155, 420057241, 3360457928, 26883663426, 215069307411, 1720554459289, 13764435674312, 110115485394498, 880923883155987, 7047391065247897
OFFSET
1,1
FORMULA
G.f.: x*(3-2*x+2*x^2) / ( (x-1)*(8*x-1)*(x^2+1) ). - R. J. Mathar, May 02 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {3, 1, 0, 2}], 8], {n, 20}] (* or *) LinearRecurrence[{9, -9, 9, -8}, {3, 25, 200, 1602}, 20] (* Harvey P. Dale, Jul 17 2023 *)
CROSSREFS
Sequence in context: A356200 A221777 A227995 * A037664 A289164 A037783
KEYWORD
nonn,base,easy
STATUS
approved