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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A138055 Period 8: repeat 1, 3, 5, 9, 3, 1, 9, 5. 0
1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

COMMENTS

Terms of the simple continued fraction of 5158/[1207*sqrt(157)-11195]. [From Paolo P. Lava (paoloplava(AT)gmail.com), Aug 06 2009]

LINKS

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

FORMULA

a(n)=(1/56)*{37*(n mod 8)+37*[(n+1) mod 8]-47*[(n+2) mod 8]+23*[(n+3) mod 8]+51*[(n+4) mod 8]-19*[(n+5) mod 8]-5*[(n+6) mod 8]-5*[(n+7) mod 8]}, with n>=0 - Paolo P. Lava (paoloplava(AT)gmail.com), May 07 2008

PROG

(PARI) a(n)=[1, 3, 5, 9, 3, 1, 9, 5][n%8+1] \\ Charles R Greathouse IV, Jun 02 2011

CROSSREFS

Cf. A136252.

Sequence in context: A019739 A101298 A200510 * A189044 A199612 A076844

Adjacent sequences:  A138052 A138053 A138054 * A138056 A138057 A138058

KEYWORD

nonn,easy,less

AUTHOR

Paul Curtz (bpcrtz(AT)]free.fr), May 02 2008

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 February 17 14:16 EST 2012. Contains 206034 sequences.