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.

A099392 a(n) = floor((n^2 - 2*n + 3)/2).

This page as a plain text file.
%I A099392 #56 Jan 28 2024 04:46:48
%S A099392 1,1,3,5,9,13,19,25,33,41,51,61,73,85,99,113,129,145,163,181,201,221,
%T A099392 243,265,289,313,339,365,393,421,451,481,513,545,579,613,649,685,723,
%U A099392 761,801,841,883,925,969,1013,1059,1105,1153,1201,1251,1301,1353,1405
%N A099392 a(n) = floor((n^2 - 2*n + 3)/2).
%H A099392 Guenther Schrack, <a href="/A099392/b099392.txt">Table of n, a(n) for n = 1..10010</a>
%H A099392 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (2,0,-2,1).
%F A099392 a(n) = ceiling(n^2/2)-n+1. - _Paul Barry_, Jul 16 2006; index shifted by _R. J. Mathar_, Jul 29 2007
%F A099392 a(n) = ceiling(A002522(n-1)/2). - _Branko Curgus_, Sep 02 2007
%F A099392 From _R. J. Mathar_, Feb 20 2011: (Start)
%F A099392 G.f.: x *( -1+x-x^2-x^3 ) / ( (1+x)*(x-1)^3 ).
%F A099392 a(n) = 2*a(n-1) - 2*a(n-3) + a(n-4).
%F A099392 a(n+1) = (3 + 2*n^2 + (-1)^n)/4. (End)
%F A099392 a(n) = A007590(n-1) + 1 for n >= 2. - _Richard R. Forberg_, Aug 01 2013
%F A099392 a(n) = A000217(n) - A007494(n-1). - _Bui Quang Tuan_, Mar 27 2015
%F A099392 From _Guenther Schrack_, Apr 17 2018: (Start)
%F A099392 a(n) = (2*n^2 - 4*n + 5 -(-1)^n)/4.
%F A099392 a(n+2) = a(n) + 2*n for n > 0.
%F A099392 a(n) = 2*A033683(n-1) - 1 for n > 0.
%F A099392 a(n) = A047838(n-1) + 2 for n > 2.
%F A099392 a(n) = A074148(n-1) - n + 2 for n > 1.
%F A099392 a(n) = A183575(n-3) + 3 for n > 3.
%F A099392 a(n) = 2*A290743(n-1) - 3 for n > 0.
%F A099392 a(n) = 2*A290743(n-2) + A109613(n-5) for n > 4.
%F A099392 a(n) = A074148(n) - A014601(n-1) for n > 0. (End)
%F A099392 Sum_{n>=1} 1/a(n) = tanh(Pi/2)*Pi/2 + coth(Pi/sqrt(2))*Pi/(2*sqrt(2)) + 1/2. - _Amiram Eldar_, Sep 16 2022
%F A099392 E.g.f.: ((2 - x + x^2)*cosh(x) + (3 - x + x^2)*sinh(x) - 2)/2. - _Stefano Spezia_, Jan 28 2024
%t A099392 Array[Floor[(#^2 - 2 # + 3)/2] &, 54] (* or *)
%t A099392 Rest@ CoefficientList[Series[x (-1 + x - x^2 - x^3)/((1 + x) (x - 1)^3), {x, 0, 54}], x] (* _Michael De Vlieger_, Apr 21 2018 *)
%o A099392 (PARI) a(n)=(n^2+3)\2-n \\ _Charles R Greathouse IV_, Aug 01 2013
%Y A099392 Differs from A085913 at n = 61. Apart from leading term, identical to A080827.
%Y A099392 Cf. A000217, A001844, A002522, A007494, A007590, A058331 (bisections).
%Y A099392 From _Guenther Schrack_, Apr 17 2018: (Start)
%Y A099392 First differences: A052928.
%Y A099392 Partial sums: A212964(n) + n for n > 0.
%Y A099392 Also A058331 and A001844 interleaved. (End)
%Y A099392 Cf. A014601, A033683, A047838, A074148, A109613, A183575, A290743.
%K A099392 nonn,easy
%O A099392 1,3
%A A099392 _Ralf Stephan_ following a suggestion from Luke Pebody, Oct 20 2004