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

%I #14 Jul 21 2021 13:17:26

%S 2,18,163,1469,13221,118990,1070912,9638208,86743873,780694859,

%T 7026253731,63236283580,569126552222,5122138969998,46099250729983,

%U 414893256569849,3734039309128641,33606353782157770,302457184039419932,2722114656354779388

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

%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*(2+x^2) / ( (x-1)*(9*x-1)*(1+x+x^2) ). - _R. J. Mathar_, Nov 21 2011

%t Table[FromDigits[PadRight[{},n,{2,0,1}],9],{n,20}] (* or *) LinearRecurrence[ {9,0,1,-9},{2,18,163,1469},20] (* _Harvey P. Dale_, May 20 2018 *)

%K nonn,base,easy

%O 1,1

%A _Clark Kimberling_

%E More terms from _Harvey P. Dale_, May 20 2018