login

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

A037682
Base-5 digits are, in order, the first n terms of the periodic sequence with initial period 1,0,3,2.
1
1, 5, 28, 142, 711, 3555, 17778, 88892, 444461, 2222305, 11111528, 55557642, 277788211, 1388941055, 6944705278, 34723526392, 173617631961, 868088159805, 4340440799028, 21702203995142, 108511019975711, 542555099878555
OFFSET
1,2
FORMULA
G.f.: ( x*(1+3*x^2+2*x^3) ) / ( (x-1)*(5*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, Oct 11 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {1, 0, 3, 2}], 5], {n, 30}] (* or *) LinearRecurrence[ {5, 0, 0, 1, -5}, {1, 5, 28, 142, 711}, 30] (* Harvey P. Dale, Jul 03 2021 *)
CROSSREFS
Sequence in context: A297322 A037591 A270922 * A271686 A272288 A283516
KEYWORD
nonn,base,easy
STATUS
approved