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.

A046980 Numerators of Taylor series for exp(x)*cos(x).

This page as a plain text file.
%I A046980 #26 Nov 02 2024 18:06:04
%S A046980 1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,
%T A046980 -1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,
%U A046980 0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1
%N A046980 Numerators of Taylor series for exp(x)*cos(x).
%C A046980 Lehmer sequence U_n for R=2 Q=1. [_Artur Jasinski_, Oct 06 2008]
%D A046980 G. W. Caunt, Infinitesimal Calculus, Oxford Univ. Press, 1914, p. 477.
%H A046980 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (0, 0, 0, -1).
%F A046980 G.f.: (1+x-x^3)/(1+x^4).
%F A046980 a(n) = (b^(n+1) - c^(n+1))/(b - c) where b = sqrt(2)-((1 + I)/sqrt(2)), c = (1 + I)/sqrt(2). [_Artur Jasinski_, Oct 06 2008]
%e A046980 1 + 1*x - (1/3)*x^3 - (1/6)*x^4 - (1/30)*x^5 + (1/630)*x^7 + (1/2520)*x^8 + (1/22680)*x^9 - ...
%p A046980 A046980 := n -> `if`(n mod 4 = 2, 0, (-1)^floor((n+1)/4)):
%p A046980 seq(A046980(n), n=0..92); # _Peter Luschny_, Jun 16 2017
%t A046980 b = -((1 + I)/Sqrt[2]) + Sqrt[2]; c = (1 + I)/Sqrt[2]; Table[ Round[(b^n - c^n)/(b - c)], {n, 2, 200}] (* _Artur Jasinski_, Oct 06 2008 *)
%t A046980 LinearRecurrence[{0, 0, 0, -1}, {1, 1, 0, -1}, 100] (* _Jean-François Alcover_, Apr 01 2016 *)
%t A046980 PadRight[{},120,{1,1,0,-1,-1,-1,0,1}] (* _Harvey P. Dale_, Nov 02 2024 *)
%Y A046980 Cf. A046981.
%K A046980 sign,frac,easy,nice
%O A046980 0,1
%A A046980 _N. J. A. Sloane_