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

%I #9 Jun 07 2016 17:38:14

%S 2,13,78,471,2828,16969,101814,610887,3665324,21991945,131951670,

%T 791710023,4750260140,28501560841,171009365046,1026056190279,

%U 6156337141676,36938022850057,221628137100342,1329768822602055

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

%H <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (6,0,0,1,-6).

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

%t Module[{nn=20,pr},pr=PadRight[{},nn,{2,1,0,3}];Table[ FromDigits[ Take[ pr,n], 6],{n,nn}]] (* _Harvey P. Dale_, Jun 07 2016 *)

%K nonn,base

%O 1,1

%A _Clark Kimberling_