A037688 Base-4 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,0,3.
1, 6, 24, 99, 397, 1590, 6360, 25443, 101773, 407094, 1628376, 6513507, 26054029, 104216118, 416864472, 1667457891, 6669831565, 26679326262, 106717305048, 426869220195, 1707476880781, 6829907523126, 27319630092504
Offset: 1
Links
- Index entries for linear recurrences with constant coefficients, signature (4,0,0,1,-4).
Programs
-
Mathematica
Table[FromDigits[PadRight[{},n,{1,2,0,3}],4],{n,30}] (* Harvey P. Dale, Mar 06 2024 *)
Formula
G.f.: ( x*(1+2*x+3*x^3) ) / ( (x-1)*(4*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, Oct 11 2015