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 A117188 #48 Dec 14 2023 05:32:53 %S A117188 1,0,-2,0,1,0,1,0,-2,0,1,0,1,0,-2,0,1,0,1,0,-2,0,1,0,1,0,-2,0,1,0,1,0, %T A117188 -2,0,1,0,1,0,-2,0,1,0,1,0,-2,0,1,0,1,0,-2,0,1,0,1,0,-2,0,1,0,1,0,-2, %U A117188 0,1,0,1,0,-2,0,1,0,1,0,-2,0,1,0,1,0,-2,0 %N A117188 Expansion of (1-x^2)/(1+x^2+x^4). %C A117188 Periodic: repeat [1, 0, -2, 0, 1, 0]. %C A117188 Minton mentions that the subsequence a(2^i), i >= 1, oscillates between -2 and 1 (and does not converge 2-adically). - _N. J. A. Sloane_, Jul 09 2014 %H A117188 Vincenzo Librandi, <a href="/A117188/b117188.txt">Table of n, a(n) for n = 0..1000</a> %H A117188 Gregory T. Minton, <a href="http://dx.doi.org/10.1090/S0002-9939-2014-12168-X">Linear recurrence sequences satisfying congruence conditions</a>, Proc. Amer. Math. Soc. 142 (2014), no. 7, 2337--2352. MR3195758. See Example 6.13. - _N. J. A. Sloane_, Jul 09 2014 %H A117188 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (0,-1,0,-1). %F A117188 G.f.: (1 - 2*x^2 + x^4)/(1-x^6). %F A117188 a(n) = (1 + (-1)^n)/(-2 + 4^(floor((n-1)/3) - 2*floor((n-1)/6))). - _Tani Akinari_, Aug 02 2013 %F A117188 a(n) = -a(n-2) - a(n-4) for n >= 4. - _N. J. A. Sloane_, Jul 09 2014 %F A117188 From _Wesley Ivan Hurt_, Jun 23 2016: (Start) %F A117188 a(n) = a(n-6) for n>5. %F A117188 a(n) = cos(n*Pi/2) * (cos(n*Pi/6) + sqrt(3)*sin(n*Pi/6)). (End) %F A117188 E.g.f.: cos(sqrt(3)*x/2)*cosh(x/2) - sqrt(3)*sin(sqrt(3)*x/2)*sinh(x/2). - _Ilya Gutkovskiy_, Jun 27 2016 %F A117188 a(n) = cos((n+1)*Pi/3) - cos(2*(n+1)*Pi/3). - _Ridouane Oudra_, Dec 14 2021 %p A117188 A117188:=n->[1, 0, -2, 0, 1, 0][(n mod 6)+1]: seq(A117188(n), n=0..100); # _Wesley Ivan Hurt_, Jun 23 2016 %t A117188 PadRight[{}, 100, {1, 0, -2, 0, 1, 0}] (* _Wesley Ivan Hurt_, Jun 23 2016 *) %t A117188 LinearRecurrence[{0,-1,0,-1},{1,0,-2,0},100] (* _Harvey P. Dale_, Jun 25 2022 *) %o A117188 (Magma) &cat [[1, 0, -2, 0, 1, 0]^^20]; // _Wesley Ivan Hurt_, Jun 23 2016 %Y A117188 Row sums of A117185. %K A117188 sign,easy %O A117188 0,3 %A A117188 _Paul Barry_, Mar 01 2006