login
A033141
Base-5 digits are, in order, the first n terms of the periodic sequence with initial period 1,0,0.
0
1, 5, 25, 126, 630, 3150, 15751, 78755, 393775, 1968876, 9844380, 49221900, 246109501, 1230547505, 6152737525, 30763687626, 153818438130, 769092190650, 3845460953251, 19227304766255, 96136523831275, 480682619156376
OFFSET
1,2
FORMULA
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
MATHEMATICA
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 *)
CROSSREFS
Sequence in context: A030988 A173260 A080516 * A099524 A081916 A307879
KEYWORD
nonn,base,easy
STATUS
approved