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

%I #13 Jul 22 2021 04:55:38

%S 2,13,78,470,2821,16926,101558,609349,3656094,21936566,131619397,

%T 789716382,4738298294,28429789765,170578738590,1023472431542,

%U 6140834589253,36845007535518,221070045213110,1326420271278661

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

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

%F G.f.: x*(2+x) / ( (x-1)*(6*x-1)*(1+x+x^2) ). - _R. J. Mathar_, Nov 21 2011

%t Table[FromDigits[PadRight[{},n,{2,1,0}],6],{n,20}] (* or *) LinearRecurrence[ {6,0,1,-6},{2,13,78,470},20] (* _Harvey P. Dale_, Jul 05 2021 *)

%K nonn,base

%O 1,1

%A _Clark Kimberling_