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.
%I A131720 #25 Dec 12 2023 09:15:58 %S A131720 0,1,-1,1,-1,0,0,1,-1,1,-1,0,0,1,-1,1,-1,0,0,1,-1,1,-1,0,0,1,-1,1,-1, %T A131720 0,0,1,-1,1,-1,0,0,1,-1,1,-1,0,0,1,-1,1,-1,0,0,1,-1,1,-1,0,0,1,-1,1, %U A131720 -1,0,0,1,-1,1,-1,0,0,1,-1,1,-1,0,0,1,-1,1,-1,0 %N A131720 Period 6: repeat [0, 1, -1, 1, -1, 0]. %H A131720 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (-1,-1,-1,-1,-1). %F A131720 a(n) = 1/6*cos(1/3*Pi*n)+1/6*3^(1/2)*sin(1/3*Pi*n)+1/2*cos(2/3*Pi*n)+1/6*3^(1/2)*sin(2/3*Pi*n)+2/3*(-1)^(1+n). - _R. J. Mathar_, Nov 15 2007 %F A131720 G.f.: x*(x^2+1) / ((x+1)*(x^2-x+1)*(x^2+x+1)). [Maksym Voznyy (voznyy(AT)mail.ru), Aug 11 2009] %F A131720 a(n) + a(n-1) + a(n-2) + a(n-3) + a(n-4) + a(n-5) = 0 for n>4. - _Wesley Ivan Hurt_, Jun 20 2016 %p A131720 A131720:=n->[0, 1, -1, 1, -1, 0][(n mod 6)+1]: seq(A131720(n), n=0..100); # _Wesley Ivan Hurt_, Jun 20 2016 %t A131720 PadRight[{}, 100, {0,1,-1,1,-1,0}] (* _Harvey P. Dale_, Aug 20 2015 *) %o A131720 (PARI) a(n)=[0,1,-1,1,-1,0][n%6+1] \\ _Charles R Greathouse IV_, Jun 02 2011 %o A131720 (Magma) &cat [[0, 1, -1, 1, -1, 0]^^20]; // _Wesley Ivan Hurt_, Jun 20 2016 %K A131720 sign,easy,less %O A131720 0,1 %A A131720 _Paul Curtz_, Sep 15 2007