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

%I #22 Dec 12 2023 08:52:58

%S 1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,

%T 0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,

%U 2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2

%N Period 6: repeat [1, 4, 2, 3, 0, 2].

%C Northwest diagonal sums of A134658, omitting row 0.

%H Vincenzo Librandi, <a href="/A134977/b134977.txt">Table of n, a(n) for n = 0..1000</a>

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

%F O.g.f.: -1/(x+1)-2/(x-1)+x/(x^2-x+1). a(n) = 2-(-1)^n+A010892(n-1). - _R. J. Mathar_, Feb 08 2008

%F From _Wesley Ivan Hurt_, Jun 18 2016: (Start)

%F a(n) = a(n-1) - a(n-3) + a(n-4) for n>3.

%F a(n) = (6-3*cos(n*Pi)+2*sqrt(3)*sin(n*Pi/3))/3. (End)

%p A134977:=n->[1, 4, 2, 3, 0, 2][(n mod 6)+1]: seq(A134977(n), n=0..100); # _Wesley Ivan Hurt_, Jun 18 2016

%t Flatten[Table[{1, 4, 2, 3, 0, 2}, {20}]] (* _Wesley Ivan Hurt_, Jun 18 2016 *)

%t PadRight[{}, 100, {1, 4, 2, 3, 0, 2}] (* _Vincenzo Librandi_, Jun 19 2016 *)

%o (Magma) &cat[[1, 4, 2, 3, 0, 2]^^20]; // _Wesley Ivan Hurt_, Jun 18 2016

%Y Cf. A010892, A119910, A130784, A131756, A134658.

%K nonn,easy

%O 0,2

%A _Paul Curtz_, Feb 04 2008

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 25 04:42 EDT 2024. Contains 371964 sequences. (Running on oeis4.)