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

%I #18 Oct 13 2022 14:21:22

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

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

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

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

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

%t PadRight[{},120,{1,2,2,-1,1}] (* _Harvey P. Dale_, Dec 30 2016 *)

%o (PARI) a(n)=[1,1,2,2,-1][n%5+1] \\ _Charles R Greathouse IV_, Mar 12 2017

%Y Cf. A040001, A028356, A142150, A000012, A175922.

%K sign,easy,less

%O 1,2

%A _Jaroslav Krizek_, Oct 17 2010

%E Edited by _Joerg Arndt_, Sep 16 2013

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 16 14:05 EDT 2024. Contains 371740 sequences. (Running on oeis4.)