%I #15 Jun 13 2015 00:49:17
%S 3,21,148,1039,7273,50912,356387,2494709,17462964,122240751,855685257,
%T 5989796800,41928577603,293500043221,2054500302548,14381502117839,
%U 100670514824873,704693603774112,4932855226418787
%N Base 7 digits are, in order, the first n terms of the periodic sequence with initial period 3,0,1.
%H Vincenzo Librandi, <a href="/A037649/b037649.txt">Table of n, a(n) for n = 1..200</a>
%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (7,0,1,-7).
%F a(n) = 7*a(n-1)+a(n-3)-7*a(n-4). G.f.: x*(x^2+3) / ((x-1)*(7*x-1)*(x^2+x+1)). - _Colin Barker_, Aug 09 2014
%t Module[{nn=20,c},c=PadRight[{},nn,{3,0,1}];Table[FromDigits[Take[c,n],7],{n,nn}]] (* _Harvey P. Dale_, Aug 09 2014 *)
%K nonn,base,easy
%O 1,1
%A _Clark Kimberling_
|