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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A010732 (17-(-1)^n)/2. 6
8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

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

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

FORMULA

Period 2.

a(n) = -1/2*(-1)^n+17/2. a(n)=9*(n mod 2)+8*[(n+1) mod 2]. - Paolo P. Lava, Oct 20 2006

G.f.: (-8-9*x) / ((x-1)*(1+x)). - R. J. Mathar, Nov 21 2011

a(n) = 8 + (n mod 2) = 9 - ((n+1) mod 2) = (2 + (n mod 2))^(2 + ((n+1) mod 2)). - Wesley Ivan Hurt, Apr 16 2014

MAPLE

A010732:=n->(17-(-1)^n)/2; seq(A010732(n), n=0..100); # Wesley Ivan Hurt, Apr 16 2014

MATHEMATICA

Table[(17 - (-1)^n)/2, {n, 0, 100}] (* Wesley Ivan Hurt, Apr 16 2014 *)

PROG

(PARI) a(n)=(17-(-1)^n)/2 \\ Charles R Greathouse IV, Oct 07 2015

CROSSREFS

Sequence in context: A216699 A011010 A019606 * A235398 A244959 A241990

Adjacent sequences:  A010729 A010730 A010731 * A010733 A010734 A010735

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane, Dec 11 1996

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 July 23 19:33 EDT 2019. Contains 325263 sequences. (Running on oeis4.)