%I #11 Feb 13 2017 02:48:18
%S 2,15,107,751,5258,36808,257658,1803607,12625251,88376759,618637314,
%T 4330461200,30313228402,212192598815,1485348191707,10397437341951,
%U 72782061393658,509474429755608,3566321008289258
%N Base 7 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,2.
%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (7,0,1,-7).
%H <a href="/index/Ar#7-automatic">Index entries for 7-automatic sequences</a>.
%F G.f.: x*(2+x+2*x^2) / ( (x-1)*(7*x-1)*(1+x+x^2) ). - _R. J. Mathar_, Apr 27 2015
%F A007093(a(n)) = A037575(n).
%o (PARI) a(n)=([0,1,0,0; 0,0,1,0; 0,0,0,1; -7,1,0,7]^(n-1)*[2;15;107;751])[1,1] \\ _Charles R Greathouse IV_, Feb 13 2017
%K nonn,base,easy
%O 1,1
%A _Clark Kimberling_
|