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 A302758 #27 Jun 20 2025 03:32:38 %S A302758 0,1,3,14,25,66,98,200,270,475,605,966,1183,1764,2100,2976,3468,4725, %T A302758 5415,7150,8085,10406,11638,14664,16250,20111,22113,26950,29435,35400, %U A302758 38440,45696,49368,58089,62475,72846,78033,90250,96330,110600,117670,134211,142373,161414 %N A302758 a(n) = n^2*(n*(4*n + 3) + 3*n*(-1)^n - 4)/96. %C A302758 Consider the partitions of n into two parts (p,q). Then 2*a(n) represents the total volume of the family of rectangular prisms with dimensions p, q, and (p + q). %H A302758 <a href="/index/Par#part">Index entries for sequences related to partitions</a>. %H A302758 <a href="/index/Rec#order_09">Index entries for linear recurrences with constant coefficients</a>, signature (1,4,-4,-6,6,4,-4,-1,1). %F A302758 a(n) = (n/2) * Sum_{i=1..floor(n/2)} i*(n - i). %F A302758 a(n) = n*floor(n/2)*(1 + floor(n/2))*(3*n - 1 - 2*floor(n/2))/12. %F A302758 From _Bruno Berselli_, Apr 13 2018: (Start) %F A302758 O.g.f.: x^2*(1 + 2*x + 7*x^2 + 3*x^3 + 3*x^4)/((1 - x)^5*(1 + x)^4). %F A302758 E.g.f.: x*(-3*(1 - exp(2*x))*exp(-x) + 3*(3 + 11*exp(2*x))*exp(-x)*x - 3*(1 - 9*exp(2*x))*exp(-x)*x^2 + 4*exp(x)*x^3)/96. %F A302758 a(n) = n^2*(n*(4*n + 3) + 3*n*(-1)^n - 4)/96. Therefore: %F A302758 a(n) = n^2*(2*n - 1)*(n + 2)/48 for n even; otherwise: %F A302758 a(n) = n^2*(n - 1)*(n + 1)/24. %F A302758 n^2*(4*n^2 + n - 1)*a(n+2) - 4*n^2*(n + 2)*a(n+1) - (n + 2)*(n + 3)*(4*n^2 + 9*n + 4)*a(n) = 0. (End) %F A302758 Sum_{n>=2} 1/a(n) = 156/5 - 48*Pi/5 - 4*Pi^2 + 288*log(2)/5. - _Amiram Eldar_, Jun 20 2025 %t A302758 Table[n*Floor[n/2]*(1 + Floor[n/2])*(3 n - 1 - 2*Floor[n/2])/12, {n, 50}] %t A302758 Table[n^2 (n (4 n + 3) + 3 n (-1)^n - 4)/96, {n, 1, 50}] (* _Bruno Berselli_, Apr 13 2018 *) %o A302758 (PARI) vector(50, n, nn; n^2*(n*(4*n+3)+3*n*(-1)^n-4)/96) \\ _Bruno Berselli_, Apr 13 2018 %o A302758 (Julia) [div(n^2*(n*(4*n+3)+3*n*(-1)^n-4), 96) for n in 1:50] |> println # _Bruno Berselli_, Apr 13 2018 %o A302758 (Sage) [n^2*(n*(4*n+3)+3*n*(-1)^n-4)/96 for n in (1..50)] # _Bruno Berselli_, Apr 13 2018 %o A302758 (GAP) List([1..50], n -> n^2*(n*(4*n+3)+3*n*(-1)^n-4)/96); # _Bruno Berselli_, Apr 13 2018 %o A302758 (Python) [n**2*(n*(4*n+3)+3*n*(-1)**n-4)/96 for n in range(1, 50)] # _Bruno Berselli_, Apr 13 2018 %o A302758 (Magma) [n^2*(n*(4*n+3)+3*n*(-1)^n-4)/96: n in [1..50]]; // _Bruno Berselli_, Apr 13 2018 %Y A302758 Cf. A302647. %Y A302758 First bisection is A180324. %Y A302758 After 0, subsequence of A107972. %K A302758 nonn,easy %O A302758 1,3 %A A302758 _Wesley Ivan Hurt_, Apr 12 2018