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

A010706
Period 2: repeat (3,8).
5
3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3
OFFSET
0,1
COMMENTS
Continued fraction of (6+sqrt 42)/4. - R. J. Mathar, Nov 21 2011
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
A010706:=n->3 + 5*(n mod 2); seq(A010706(n), n=0..50); # Wesley Ivan Hurt, Jun 16 2014
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
Sequence in context: A359200 A125025 A309345 * A204998 A019919 A213277
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 11 1996
STATUS
approved