|
|
A037514
|
|
Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 2,0,1.
|
|
1
|
|
|
2, 10, 51, 257, 1285, 6426, 32132, 160660, 803301, 4016507, 20082535, 100412676, 502063382, 2510316910, 12551584551, 62757922757, 313789613785, 1568948068926, 7844740344632, 39223701723160, 196118508615801, 980592543079007
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(2+x^2) / ( (x-1)*(5*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011
|
|
MATHEMATICA
|
CoefficientList[Series[(2 + x^2) / ((x - 1) (5 x - 1) (1 + x + x^2)), {x, 0, 30}], x] (* Vincenzo Librandi, May 31 2013 *)
|
|
PROG
|
(Magma) I:=[2, 10, 51, 257]; [n le 4 select I[n] else 5*Self(n-1)+Self(n-3)-5*Self(n-4): n in [1..30]]; // Vincenzo Librandi, May 31 2013
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|