OFFSET
0,1
COMMENTS
Continued fraction of (6+sqrt 42)/4. - R. J. Mathar, Nov 21 2011
LINKS
FORMULA
a(n) = -(5/2)*(-1)^n + 11/2. - Paolo P. Lava, Oct 20 2006
G.f.: (3+8x)/((1-x)(1+x)). - R. J. Mathar, Nov 21 2011
a(n) = 3 + 5*(n mod 2). - Wesley Ivan Hurt, Jun 16 2014
MAPLE
MATHEMATICA
Table[3 + 5 Mod[n, 2], {n, 0, 50}] (* Wesley Ivan Hurt, Jun 16 2014 *)
PROG
(PARI) a(n)=3+[0, 5][1+n%2]; /* Same as 3+5*(n%2) */ \\ R. J. Cano, Jun 16 2014
(Magma) [3 + 5*(n mod 2): n in [0..50]]; // Wesley Ivan Hurt, Jun 16 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 11 1996
STATUS
approved