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 A285188 #50 Apr 24 2018 05:51:09 %S A285188 0,4,13,45,95,203,350,606,930,1430,2035,2899,3913,5285,6860,8908, %T A285188 11220,14136,17385,21385,25795,31119,36938,43850,51350,60138,69615, %U A285188 80591,92365,105865,120280,136664,154088,173740,194565,217893,242535,269971 %N A285188 a(n) = Sum_{k=1..n} (k^2*floor(k/2)). %H A285188 Robert Israel, <a href="/A285188/b285188.txt">Table of n, a(n) for n = 1..10000</a> %H A285188 <a href="/index/Rec#order_08">Index entries for linear recurrences with constant coefficients</a>, signature (2,2,-6,0,6,-2,-2,1). %F A285188 Theorem: a(n) = (1/8)*n^2*(n+1)^2 - (2/3)*floor((n+1)/2)^3 + (1/6)*floor((n+1)/2). %F A285188 From _Chai Wah Wu_, Apr 24 2017: (Start) %F A285188 a(n) = 2*a(n-1) + 2*a(n-2) - 6*a(n-3) + 6*a(n-5) - 2*a(n-6) - 2*a(n-7) + a(n-8) for n > 8. %F A285188 G.f.: x^2*(x^4 + 3*x^3 + 11*x^2 + 5*x + 4)/((1 - x)^5*(1 + x)^3). (End) %F A285188 a(n) = n*(n+1)*(3*n^2+n-1+3*(-1)^n)/24. - _Robert Israel_, Apr 26 2017 %e A285188 For n = 4, a(4) = 1^2*floor(1/2) + 2^2*floor(2/2) + 3^2*floor(3/2) + 4^2*floor(4/2) = 0 + 4 + 9 + 32 = 45. %p A285188 seq( n*(n+1)*(3*n^2+n-1+3*(-1)^n)/24, n=1..100); # _Robert Israel_, Apr 26 2017 %o A285188 (MATLAB) s = @(n) sum((1:n).^2.*floor((1:n)/2)); %summation handle function %o A285188 s_cf = @(n) 1/8*n^2*(n+1)^2 - 2/3*floor((n+1)/2)^3 + 1/6*floor((n+1)/2); %faster closed-form handle function %o A285188 (PARI) a(n) = sum(k=1, n, k^2*(k\2)); \\ _Michel Marcus_, Apr 24 2017 %Y A285188 Cf. A049779. %Y A285188 Partial sums of A265645. %K A285188 nonn,easy %O A285188 1,2 %A A285188 _Néstor Jofré_, Apr 24 2017