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.

A175922 Period 5: repeat [1, 1, 2, -1, 2].

This page as a plain text file.
%I A175922 #24 Sep 08 2022 08:45:52
%S A175922 1,1,2,-1,2,1,1,2,-1,2,1,1,2,-1,2,1,1,2,-1,2,1,1,2,-1,2,1,1,2,-1,2,1,
%T A175922 1,2,-1,2,1,1,2,-1,2,1,1,2,-1,2,1,1,2,-1,2,1,1,2,-1,2,1,1,2,-1,2,1,1,
%U A175922 2,-1,2,1,1,2,-1,2,1,1,2,-1,2,1,1,2,-1,2,1,1,2,-1,2,1,1,2,-1,2
%N A175922 Period 5: repeat [1, 1, 2, -1, 2].
%H A175922 Muniru A Asiru, <a href="/A175922/b175922.txt">Table of n, a(n) for n = 1..2000</a>
%H A175922 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,1).
%F A175922 a(n) = 1 + (2/5)*(cos(2*n*Pi/5) + cos(4*n*Pi/5) - 2*cos(2*(n+1)*Pi/5) - sin((4*n+3)*Pi/10) + 2*sin((8*n+3)*Pi/10) + sin((8*n+1)*Pi/10)). - _Wesley Ivan Hurt_, Sep 27 2018
%F A175922 G.f.: x*(1 + x + 2*x^2 - x^3 + 2*x^4) / (1 - x^5). - _Vincenzo Librandi_, Sep 28 2018
%F A175922 a(n) = a(n-5). - _Wesley Ivan Hurt_, Jun 25 2022
%p A175922 seq(op([1,1,2,-1,2]),n=1..30); # _Muniru A Asiru_, Sep 28 2018
%t A175922 PadRight[{}, 100, {1, 1, 2, -1, 2}] (* _Vincenzo Librandi_, Sep 28 2018 *)
%o A175922 (PARI) a(n)=[2,1,1,2,-1][n%5+1] \\ _Charles R Greathouse IV_, Jul 17 2016
%o A175922 (Magma) &cat[[1, 1, 2, -1, 2]^^20]; // _Vincenzo Librandi_, Sep 28 2018
%o A175922 (GAP) Flat(List([1..30],n->[1,1,2,-1,2])); # _Muniru A Asiru_, Sep 28 2018
%Y A175922 Cf. A040001, A028356, A142150, A000012, A175921.
%K A175922 sign,easy,less
%O A175922 1,3
%A A175922 _Jaroslav Krizek_, Oct 17 2010
%E A175922 Edited by _Joerg Arndt_, Sep 16 2013