login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
OFFSET
0,1
FORMULA
Period 2.
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 A377999
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 11 1996
STATUS
approved