login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 08:27 EDT 2024. Contains 371698 sequences. (Running on oeis4.)