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

%I #13 Jul 27 2024 20:10:38

%S 1,11,99,894,8047,72425,651825,5866428,52797853,475180679,4276626111,

%T 38489635002,346406715019,3117660435173,28058943916557,

%U 252530495249016,2272774457241145,20454970115170307,184094731036532763,1656852579328794870,14911673213959153831,134205058925632384481

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

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

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

%F E.g.f.: (-160*cos(x) - 287*cosh(x) + 447*cosh(9*x) + 200*sin(x) - 943*sinh(x) + 447*sinh(9*x))/3280. - _Stefano Spezia_, Jul 27 2024

%t Module[{nn=20,b9},b9=PadRight[{},nn,{1,2,0,3}];Table[FromDigits[ Take[ b9,n],9],{n,nn}]] (* _Harvey P. Dale_, Feb 28 2016 *)

%K nonn,base,easy

%O 1,2

%A _Clark Kimberling_

%E a(18)-a(22) from _Stefano Spezia_, Jul 27 2024