[go: up one dir, main page]

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

%I #10 Jun 13 2015 00:49:16

%S 2,15,106,744,5209,36464,255250,1786751,12507258,87550808,612855657,

%T 4289989600,30029927202,210209490415,1471466432906,10300265030344,

%U 72101855212409,504712986486864,3532990905408050

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

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

%F G.f.: x*(2+x+x^2) / ( (x-1)*(7*x-1)*(1+x+x^2) ). - _R. J. Mathar_, Apr 30 2015

%t nn=30;With[{c=PadRight[{},nn,{2,1,1}]},Table[FromDigits[Take[c,n],7],{n,nn}]] (* _Harvey P. Dale_, May 05 2012 *)

%K nonn,base,easy

%O 1,1

%A _Clark Kimberling_