cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A156283 Period 6: repeat [1, 2, 4, -4, -2, -1].

This page as a plain text file.
%I A156283 #21 Dec 12 2023 08:04:03
%S A156283 1,2,4,-4,-2,-1,1,2,4,-4,-2,-1,1,2,4,-4,-2,-1,1,2,4,-4,-2,-1,1,2,4,-4,
%T A156283 -2,-1,1,2,4,-4,-2,-1,1,2,4,-4,-2,-1,1,2,4,-4,-2,-1,1,2,4,-4,-2,-1,1,
%U A156283 2,4,-4,-2,-1,1,2,4,-4,-2,-1,1,2,4,-4,-2,-1,1,2
%N A156283 Period 6: repeat [1, 2, 4, -4, -2, -1].
%H A156283 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (-1,-1,-1,-1,-1).
%F A156283 a(n) == A141425(n) (mod 9). - _Paul Curtz_, Feb 08 2009
%F A156283 a(n) = ( (2*A141425(n)) mod 9) - A141425(n). - _Paul Curtz_, Feb 08 2009
%F A156283 G.f.: (1+x^4+3*x^3+7*x^2+3*x)/( (x+1)*(x^2-x+1)*(x^2+x+1) ). [Maksym Voznyy (voznyy(AT)mail.ru), Aug 11 2009]
%F A156283 From _Wesley Ivan Hurt_, Jun 23 2016: (Start)
%F A156283 a(n) + a(n-1) + a(n-2) + a(n-3) + a(n-4) + a(n-5) = 0 for n>4.
%F A156283 a(n) = cos(n*Pi) + 2*sqrt(3)*cos(n*Pi/6)*sin(n*Pi/6) - sqrt(3)*cos(n*Pi/2)*sin(n*Pi/6) + 3*sin(n*Pi/6)*sin(n*Pi/2). (End)
%p A156283 A156283:=n->[1, 2, 4, -4, -2, -1][(n mod 6)+1]: seq(A156283(n), n=0..100); # _Wesley Ivan Hurt_, Jun 23 2016
%t A156283 PadRight[{}, 80, {1,2,4,-4,-2,-1}] (* or *) LinearRecurrence[{-1,-1,-1,-1,-1}, {1,2,4,-4,-2}, 80] (* _Harvey P. Dale_, May 29 2013 *)
%o A156283 (Magma) &cat [[1, 2, 4, -4, -2, -1]^^20]; // _Wesley Ivan Hurt_, Jun 23 2016
%Y A156283 Cf. A141425.
%K A156283 sign,easy
%O A156283 0,2
%A A156283 _Paul Curtz_, Feb 07 2009