login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A010698 Period 2: repeat (2,8). 6
2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

COMMENTS

This is the regular (simple) continued fraction for (2+sqrt(5))/2 = A176055. - Antonia Redondo Buitrago, Jul 30 2009

LINKS

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

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

FORMULA

a(n) = -3*(-1)^n+5 = 8*(n mod 2)+2*[(n+1) mod 2]. - Paolo P. Lava, Oct 20 2006

G.f.: 2(1+4x)/((1-x)(1+x)). a(n) = 2*A010685(n). - R. J. Mathar, Oct 20 2008

a(n) = (A010674(n)+1)*2. - Martin Ettl, Nov 09 2012

MAPLE

A010698:=n->5-3*(-1)^n; seq(A010698(n), n=0..100); # Wesley Ivan Hurt, Mar 26 2014

MATHEMATICA

Table[5-3(-1)^n, {n, 0, 100}] (* Wesley Ivan Hurt, Mar 26 2014 *)

PadRight[{}, 120, {2, 8}] (* Harvey P. Dale, Oct 31 2016 *)

PROG

(Maxima) A010698(n):=if evenp(n) then 2 else 8$

makelist(A010698(n), n, 0, 30); /* Martin Ettl, Nov 09 2012 */

(PARI) a(n)=n%2*6+2 \\ Charles R Greathouse IV, Jun 11 2015

CROSSREFS

Sequence in context: A229939 A237889 A064912 * A286309 A010466 A086396

Adjacent sequences:  A010695 A010696 A010697 * A010699 A010700 A010701

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane

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 February 15 23:35 EST 2019. Contains 320139 sequences. (Running on oeis4.)