login
A037640
Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 2,3,1.
0
2, 13, 66, 332, 1663, 8316, 41582, 207913, 1039566, 5197832, 25989163, 129945816, 649729082, 3248645413, 16243227066, 81216135332, 406080676663, 2030403383316, 10152016916582, 50760084582913, 253800422914566
OFFSET
1,1
FORMULA
G.f.: x*(x+2)*(1+x) / ( (x-1)*(5*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 3, 1}], 5], {n, 30}] (* Harvey P. Dale, Jul 06 2020 *)
(* Alternative: *)
LinearRecurrence[ {5, 0, 1, -5}, {2, 13, 66, 332}, 30] (* Harvey P. Dale, Jul 06 2020 *)
CROSSREFS
Sequence in context: A037626 A160459 A037752 * A391827 A137967 A045764
KEYWORD
nonn,base
STATUS
approved