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; text; internal format)
OFFSET

0,2

COMMENTS

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

LINKS

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

Index entries for 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, May 07 2008

MATHEMATICA

PadRight[{}, 120, {1, 3, 5, 9, 3, 1, 9, 5}] (* Harvey P. Dale, Apr 13 2019 *)

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: A319984 A303772 A200510 * A236556 A189044 A299793

Adjacent sequences:  A138052 A138053 A138054 * A138056 A138057 A138058

KEYWORD

nonn,easy,less

AUTHOR

Paul Curtz, May 02 2008

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 November 14 01:24 EST 2019. Contains 329108 sequences. (Running on oeis4.)