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

 

Logo


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

1,1

COMMENTS

Terms of the simple continued fraction of 2102/(sqrt(2235029)-1265). - Paolo P. Lava, Aug 05 2009

Decimal expansion of 9 + 1/2 + 1/4 + 1/313 + 1/378244 + 1/2959729702407 = 975310/99999. - Bruno Berselli, Oct 02 2018

LINKS

Table of n, a(n) for n=1..105.

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

FORMULA

a(n) = 1 + 2*(-n mod 5). [From Wilson Mathematica program (2004)]

a(n) = (1/10)*(-11*(n mod 5) + 9*((n+1) mod 5) + 9*((n+2) mod 5) + 9*((n+3) mod 5) + 9*((n+4) mod 5)). - Paolo P. Lava, Nov 27 2006

a(n) = 9 - (2*(n-1) mod 10). [From Greathouse PARI program (2014)]

From Robert Israel, Jul 16 2015: (Start)

G.f.: (9 + 7*x + 5*x^2 + 3*x^3 + x^4)/(1 - x^5).

a(n) = a(n-5).

a(n) + a((a(n)+1)/2) = 10. (End)

MAPLE

map(op, [[9, 7, 5, 3, 1]$20]); # Robert Israel, Jul 16 2015

MATHEMATICA

Table[2 Mod[-n, 5] + 1, {n, 105}] (* Robert G. Wilson v, Jul 31 2004 *)

PadRight[{}, 120, {9, 7, 5, 3, 1}] (* Harvey P. Dale, Dec 19 2012 *)

PROG

(PARI) a(n) = 9 - 2*(n-1)%10; \\ Charles R Greathouse IV, Aug 25 2014

(MAGMA) &cat [[9, 7, 5, 3, 1]: n in [0..20]]; // Vincenzo Librandi, Jul 16 2015

CROSSREFS

Sequence in context: A191760 A237841 A109846 * A114433 A222129 A188141

Adjacent sequences:  A096227 A096228 A096229 * A096231 A096232 A096233

KEYWORD

nonn,easy

AUTHOR

Odimar Fabeny, Jul 29 2004

EXTENSIONS

Edited by N. J. A. Sloane and Robert G. Wilson v, Jul 31 2004

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 15 01:07 EST 2019. Contains 329142 sequences. (Running on oeis4.)