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

%I #10 Jul 11 2023 08:11:47

%S 3,22,157,1100,7703,53922,377457,2642200,18495403,129467822,906274757,

%T 6343923300,44407463103,310852241722,2175965692057,15231759844400,

%U 106622318910803,746356232375622,5224493626629357

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

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

%F G.f.: x*(3+x) / ( (x-1)*(7*x-1)*(1+x) ). - _R. J. Mathar_, Apr 26 2015

%F a(n) = 7*a(n-1) + a(n-2) - 7*a(n-3). - _Wesley Ivan Hurt_, Jul 11 2023

%t CoefficientList[Series[(3 + x)/((x - 1)*(7*x - 1)*(1 + x)), {x, 0, 30}], x] (* _Wesley Ivan Hurt_, Jul 11 2023 *)

%K nonn,base,easy

%O 1,1

%A _Clark Kimberling_