OFFSET
0,1
LINKS
FORMULA
a(n) = -(3/2)*(-1)^n + 15/2. - Paolo P. Lava, Oct 27 2006
G.f.: ( -6-9*x ) / ( (x-1)*(1+x) ). - R. J. Mathar, Nov 21 2011
a(n) = 6 + 2^(1-(-1)^n) - 1. - Vincenzo Librandi, Feb 27 2020
MATHEMATICA
Table[6 + 3 Mod[n, 2], {n, 0, 50}] (* Jinyuan Wang, Feb 26 2020 *)
PROG
(PARI) a(n)=6+n%2*3 \\ Charles R Greathouse IV, Dec 21 2011
(Magma) &cat [[6, 9]^^50]; // Vincenzo Librandi, Feb 27 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved