login

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

Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 2,0,1,3.
0

%I #8 Mar 02 2018 18:47:48

%S 2,8,33,135,542,2168,8673,34695,138782,555128,2220513,8882055,

%T 35528222,142112888,568451553,2273806215,9095224862,36380899448,

%U 145523597793,582094391175,2328377564702,9313510258808,37254041035233

%N Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 2,0,1,3.

%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (5,-5,5,-4).

%F G.f.: ( x*(2-2*x+3*x^2) ) / ( (x-1)*(4*x-1)*(x^2+1) ). - _R. J. Mathar_, Oct 14 2015

%t Table[FromDigits[PadRight[{},n,{2,0,1,3}],4],{n,30}] (* or *) LinearRecurrence[ {5,-5,5,-4},{2,8,33,135},30] (* _Harvey P. Dale_, Mar 02 2018 *)

%K nonn,base

%O 1,1

%A _Clark Kimberling_