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

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

0,2

COMMENTS

Nonsimple continued fraction expansion of (5+sqrt(13))/6 = 1.434258545... - R. J. Mathar, Mar 08 2012

LINKS

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

Index entries for sequences related to linear recurrences with constant coefficients, signature (0,0,-1).

FORMULA

a(n)=(1/6)*{-5*(n mod 6)+2*[(n+1) mod 6]+[(n+2) mod 6]+5*[(n+3) mod 6]-2*[(n+4) mod 6]-[(n+5) mod 6]} - Paolo P. Lava, Nov 30 2007

a(n) = -a(n-3). G.f.: (1+2*x+4*x^2)/((1+x) * (x^2-x+1)). [From R. J. Mathar, Apr 13 2010]

PROG

(PARI) a(n)=(2^n%7)*(-1)^(n%6>2) [From Jaume Oliver Lafont, Mar 24 2009]

CROSSREFS

Sequence in context: A215905 A206475 A124911 * A069705 A106645 A115314

Adjacent sequences:  A132951 A132952 A132953 * A132955 A132956 A132957

KEYWORD

sign,easy

AUTHOR

Paul Curtz, Nov 19 2007

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified May 19 07:18 EDT 2013. Contains 225429 sequences.