The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A010679 Period 2: repeat (0,8). 1

%I #20 Sep 08 2022 08:44:37

%S 0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,

%T 0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,

%U 0,8,0,8,0,8,0,8,0,8,0,8,0

%N Period 2: repeat (0,8).

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

%F a(n) = 4*(1-(-1)^n) = 8*(n mod 2). - _Paolo P. Lava_, Oct 20 2006

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

%F a(n) = 3^(1-(-1)^n) - 1. - _Bruno Berselli_, Dec 29 2015

%t PadRight[{},120,{0,8}] (* _Harvey P. Dale_, Dec 21 2015 *)

%o (Magma) &cat [[0,8]^^40]; // _Bruno Berselli_, Dec 29 2015

%o (PARI) a(n)=n%2*8 \\ _Charles R Greathouse IV_, Jul 26 2016

%Y Cf. A010700: 3^(1-(-1)^n) + 1.

%K nonn,easy

%O 0,2

%A _N. J. A. Sloane_.

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 June 7 03:39 EDT 2024. Contains 373140 sequences. (Running on oeis4.)