%I #14 Nov 16 2024 11:14:18
%S 1,11,102,919,8273,74460,670141,6031271,54281442,488532979,4396796813,
%T 39571171320,356140541881,3205264876931,28847383892382,
%U 259626455031439,2336638095282953
%N Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,3.
%H <a href="/index/Ar#3-automatic">Index entries for 3-automatic sequences</a>.
%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (9,0,1,-9).
%F G.f.: x*(1+2*x+3*x^2) / ( (x-1)*(9*x-1)*(1+x+x^2) ). - _R. J. Mathar_, Apr 27 2015
%F A007095(a(n)) = A037610(n). - _R. J. Mathar_, Apr 27 2015
%t Table[FromDigits[PadRight[{},n,{1,2,3}],9],{n,20}] (* or *) LinearRecurrence[{9,0,1,-9},{1,11,102,919},20] (* _Harvey P. Dale_, Nov 16 2024 *)
%o (PARI) a(n)=([0,1,0,0; 0,0,1,0; 0,0,0,1; -9,1,0,9]^(n-1)*[1;11;102;919])[1,1] \\ _Charles R Greathouse IV_, Feb 13 2017
%K nonn,base,easy
%O 1,2
%A _Clark Kimberling_