OFFSET
0,2
LINKS
FORMULA
G.f.: (1 + 5*x)/(1 - 10*x^2). - Michael De Vlieger, Jan 26 2016; amended by Georg Fischer, Apr 03 2019
MATHEMATICA
Table[2^Mod[n-1, 2]*5*10^Floor[(n-1)/2], {n, 0, 30}] (* or *)
LinearRecurrence[{0, 10}, {1, 5, 10, 50}, 30] (* or *)
CoefficientList[Series[(1+5x)/(1-10 x^2), {x, 0, 30}], x] (* Michael De Vlieger, Jan 26 2016; amended for 1, 5, ... by Georg Fischer, Apr 03 2019 *)
PROG
(PARI) a(n)=2^((n-1)%2)*5*10^((n-1)\2) \\ Georg Fischer, Apr 03 2019
(Magma) I:=[1, 5, 10]; [n le 3 select I[n] else 10*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Jan 26 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, Jan 26 2016
STATUS
approved