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!)
A131756 Period 3: repeat [2, -1, 3]. 2

%I #19 Dec 12 2023 09:13:56

%S 2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,

%T 3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,

%U -1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3,2,-1,3

%N Period 3: repeat [2, -1, 3].

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

%F a(n) = 4/3+2/3*cos(2/3*Pi*n)-4/3*3^(1/2)*sin(2/3*Pi*n). - _R. J. Mathar_, Nov 15 2007

%F G.f.: (2-x+3*x^2)/(1-x^3). - _Jaume Oliver Lafont_, Mar 24 2009

%F a(n) = a(n-3) for n>2. - _Wesley Ivan Hurt_, Jul 01 2016

%p seq(op([2, -1, 3]), n=0..50); # _Wesley Ivan Hurt_, Jul 01 2016

%t PadRight[{}, 100, {2, -1, 3}] (* _Wesley Ivan Hurt_, Jul 01 2016 *)

%o (PARI) a(n)=[2,-1,3][1+n%3] \\ _Jaume Oliver Lafont_, Mar 24 2009

%o (Magma) &cat [[2, -1, 3]^^30]; // _Wesley Ivan Hurt_, Jul 01 2016

%Y Cf. A130784.

%K sign,easy

%O 0,1

%A _Paul Curtz_, Oct 04 2007

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 6 10:47 EDT 2024. Contains 372293 sequences. (Running on oeis4.)