login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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_