login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A010732 (17-(-1)^n)/2. 6

%I #24 Dec 27 2023 08:54:28

%S 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,

%T 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,

%U 8,9,8,9,8,9,8,9,8,9,8,9,8

%N (17-(-1)^n)/2.

%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1).

%F Period 2.

%F G.f.: (-8-9*x) / ((x-1)*(1+x)). - _R. J. Mathar_, Nov 21 2011

%F 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

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

%t Table[(17 - (-1)^n)/2, {n, 0, 100}] (* _Wesley Ivan Hurt_, Apr 16 2014 *)

%o (PARI) a(n)=(17-(-1)^n)/2 \\ _Charles R Greathouse IV_, Oct 07 2015

%K nonn,easy

%O 0,1

%A _N. J. A. Sloane_, Dec 11 1996

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 10 03:37 EDT 2024. Contains 372354 sequences. (Running on oeis4.)