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”).

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
OFFSET
1,1
FORMULA
G.f.: x*(2+x^2) / ( (x-1)*(5*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011
a(n) = 5*a(n-1)+a(n-3)-5*a(n-4). - Vincenzo Librandi, May 31 2013
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
Sequence in context: A306336 A074140 A128449 * A037717 A019476 A019475
KEYWORD
nonn,base
STATUS
approved