login
This site is supported by donations 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

Table of n, a(n) for n=0..80.

Index entries for linear recurrences with constant coefficients, signature (0,1).

FORMULA

a(n) = -5/2*(-1)^n+11/2 = 8*(n mod 2)+3*[(n+1) mod 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 than 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: A179450 A117240 A151857 * A125025 A204998 A019919

Adjacent sequences:  A010703 A010704 A010705 * A010707 A010708 A010709

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 22 21:18 EDT 2019. Contains 325226 sequences. (Running on oeis4.)