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.

A002316 Related to Bernoulli numbers.

This page as a plain text file.
%I A002316 M3941 N1624 #37 Jul 02 2025 16:01:54
%S A002316 1,5,26,97,265,362,-1351,-13775,-70226,-262087,-716035,-978122,
%T A002316 3650401,37220045,189750626,708158977,1934726305,2642885282,
%U A002316 -9863382151,-100568547815,-512706121226,-1913445293767,-5227629760075,-7141075053842
%N A002316 Related to Bernoulli numbers.
%C A002316 Denoted by beta_n by Lehmer.
%D A002316 B. C. Berndt, Ramanujan's Notebooks Part IV, Springer-Verlag, see p. 84.
%D A002316 N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
%D A002316 N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
%H A002316 Robert Israel, <a href="/A002316/b002316.txt">Table of n, a(n) for n = 0..1746</a>
%H A002316 D. H. Lehmer, <a href="http://www.jstor.org/stable/1968647">Lacunary recurrence formulas for the numbers of Bernoulli and Euler</a>, Annals Math., 36 (1935), 637-649.
%H A002316 <a href="/index/Tu#2wis">Index entries for two-way infinite sequences</a>
%H A002316 <a href="/index/Be#Bernoulli">Index entries for sequences related to Bernoulli numbers.</a>
%H A002316 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (6,-11,-6,-1).
%F A002316 a(0)..a(11) are as given (with signs); for n >= 12, a(n) = -2702*a(n-6) - a(n-12).
%F A002316 G.f.: (2x^3 + 7x^2 - x + 1)/(x^4 + 6x^3 + 11x^2 - 6x + 1).
%F A002316 a(0)=1, a(1)=5, a(2)=26, a(3)=97, a(n) = 6*a(n-1) - 11*a(n-2) - 6*a(n-3) - a(n-4). - _Harvey P. Dale_, Jun 13 2011
%p A002316 f:= gfun:-rectoproc({a(0)=1, a(1)=5, a(2)=26, a(3)=97, a(n)=6*a(n-1)-11*a(n-2)-6*a(n-3)-a(n-4)},a(n),remember):
%p A002316 map(f, [$0..25]); # _Robert Israel_, Aug 23 2017
%t A002316 LinearRecurrence[{6,-11,-6,-1},{1,5,26,97},30] (* or *) CoefficientList[ Series[(2x^3+7x^2-x+1)/(x^4+6x^3+11x^2-6x+1),{x,0,30}],x] (* _Harvey P. Dale_, Jun 13 2011 *)
%o A002316 (PARI) {a(n)=if(n>=0, polcoeff( (1-x+7*x^2+2*x^3)/(1-6*x+11*x^2+6*x^3+x^4) +x*O(x^n),n), n=-1-n; (-1)^n*polcoeff( (2-7*x-x^2-x^3)/(1-6*x+11*x^2+6*x^3+x^4) +x*O(x^n),n) )} /* _Michael Somos_, Mar 27 2005 */
%Y A002316 a(n) = (-1)^n*A002317(-1-n).
%K A002316 sign,easy
%O A002316 0,2
%A A002316 _N. J. A. Sloane_
%E A002316 More terms from _James Sellers_, Dec 23 1999