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!)
A010698 Period 2: repeat (2,8). 5
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
FORMULA
a(n) = -3*(-1)^n+5. - 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
KEYWORD
nonn,easy
AUTHOR
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 May 1 22:42 EDT 2024. Contains 372178 sequences. (Running on oeis4.)