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

%I #14 May 09 2018 14:46:55

%S 1,5,25,126,630,3150,15751,78755,393775,1968876,9844380,49221900,

%T 246109501,1230547505,6152737525,30763687626,153818438130,

%U 769092190650,3845460953251,19227304766255,96136523831275,480682619156376

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

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

%F a(n) = +5*a(n-1) +a(n-3) -5*a(n-4). G.f.: x / ( (x-1)*(5*x-1)*(1+x+x^2) ). - R. J. Mathar, Jan 08 2011

%t Table[FromDigits[PadRight[{},n,{1,0,0}],5],{n,30}] (* or *) LinearRecurrence[ {5,0,1,-5},{1,5,25,126},30] (* _Harvey P. Dale_, May 09 2018 *)

%K nonn,base,easy

%O 1,2

%A _Clark Kimberling_