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 A173691 #41 Sep 08 2022 08:45:50 %S A173691 0,0,1,3,6,10,16,24,35,49,66,86,110,138,171,209,252,300,354,414,481, %T A173691 555,636,724,820,924,1037,1159,1290,1430,1580,1740,1911,2093,2286, %U A173691 2490,2706,2934,3175,3429,3696,3976,4270,4578,4901,5239,5592,5960,6344,6744,7161 %N A173691 Partial sums of round(n^2/6). %C A173691 Partial sums of A056829. %H A173691 Vincenzo Librandi, <a href="/A173691/b173691.txt">Table of n, a(n) for n = 0..5000</a> %H A173691 Mircea Merca, <a href="http://www.cs.uwaterloo.ca/journals/JIS/VOL14/Merca/merca3.html">Inequalities and Identities Involving Sums of Integer Functions</a> J. Integer Sequences, Vol. 14 (2011), Article 11.9.1. %H A173691 <a href="/index/Rec#order_09">Index entries for linear recurrences with constant coefficients</a>, signature (3,-3,1,0,0,1,-3,3,-1). %F A173691 a(n) = Sum_{k=0..n} round(k^2/6). %F A173691 a(n) = round((2*n^3 + 3*n^2 + 6*n)/36). %F A173691 a(n) = round((4*n^3 + 6*n^2 + 12*n + 5)/72). %F A173691 a(n) = floor((2*n^3 + 3*n^2 + 6*n + 16)/36). %F A173691 a(n) = ceiling((2*n^3 + 3*n^2 + 6*n - 11)/36). %F A173691 a(n) = a(n-6) + n^2 - 5*n + 10, n > 5. %F A173691 G.f.: x^2*(1+x^4)/((1+x)*(1-x+x^2)*(1+x+x^2)*(1-x)^4). - _Bruno Berselli_, Jan 12 2011 %e A173691 a(5) = round(1/6) + round(4/6) + round(9/6) + round(16/6) + round(25/6) = 0 + 1 + 2 + 3 + 4. %e A173691 Note that 9/6 = 1.5 is rounded up. %p A173691 a(n):=round((2*n^(3)+3*n^(2)+6*n)/(36)) %t A173691 Accumulate[Round[Range[0, 50]^2/6]] (* or *) LinearRecurrence[{3,-3,1,0, 0,1,-3,3,-1}, {0,0,1,3,6,10,16,24,35}, 60] (* _Harvey P. Dale_, Jan 08 2014 *) %t A173691 CoefficientList[Series[x^2(1+x^4)/((1+x)(1-x+x^2)(1+x+x^2)(1-x)^4), {x, 0, 60}], x] (* _Vincenzo Librandi_, Mar 26 2014 *) %o A173691 (Magma) [Floor((2*n^3+3*n^2+6*n+16)/36): n in [0..60]]; // _Vincenzo Librandi_, Jun 22 2011 %o A173691 (PARI) vector(60, n, n--; (16+6*n+3*n^2+2*n^3)\36) \\ _G. C. Greubel_, Jul 02 2019 %o A173691 (Sage) [floor((16+6*n+3*n^2+2*n^3)/36) for n in (0..60)] # _G. C. Greubel_, Jul 02 2019 %Y A173691 Cf. A056829. %K A173691 nonn,easy %O A173691 0,4 %A A173691 _Mircea Merca_, Nov 25 2010