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!)
A010713 Period 2: repeat (4,8). 2

%I #26 Dec 14 2023 06:04:33

%S 4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,

%T 4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,

%U 4,8,4,8,4,8,4,8,4,8,4,8,4

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

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

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

%F From _R. J. Mathar_, Oct 20 2008: (Start)

%F a(n) = 4*A000034(n).

%F G.f.: 4(1+2x)/((1-x)(1+x)). (End)

%t Table[4 + 4 Mod[n, 2], {n, 0, 50}] (* _Jinyuan Wang_, Feb 26 2020 *)

%t LinearRecurrence[{0,1},{4,8},100] (* or *) PadRight[{},100,{4,8}] (* _Harvey P. Dale_, Aug 29 2023 *)

%o (PARI) a(n)=4+n%2*4 \\ _Charles R Greathouse IV_, Dec 21 2011

%Y Cf. A176218.

%K nonn,easy

%O 0,1

%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 April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)