|
|
A037591
|
|
Base-5 digits are, in order, the first n terms of the periodic sequence with initial period 1,0,3.
|
|
0
|
|
|
1, 5, 28, 141, 705, 3528, 17641, 88205, 441028, 2205141, 11025705, 55128528, 275642641, 1378213205, 6891066028, 34455330141, 172276650705, 861383253528, 4306916267641, 21534581338205, 107672906691028, 538364533455141
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1+3*x^2) / ( (x-1)*(5*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 27 2015
|
|
MATHEMATICA
|
Table[FromDigits[PadRight[{}, n, {1, 0, 3}], 5], {n, 30}] (* or *) LinearRecurrence[ {5, 0, 1, -5}, {1, 5, 28, 141}, 30] (* Harvey P. Dale, Jan 12 2017 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|