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 A024862 #24 Apr 20 2023 02:27:55 %S A024862 3,5,17,23,50,62,110,130,205,235,343,385,532,588,780,852,1095,1185, %T A024862 1485,1595,1958,2090,2522,2678,3185,3367,3955,4165,4840,5080,5848, %U A024862 6120,6987,7293,8265,8607,9690,10070,11270,11690,13013,13475,14927,15433,17020,17572,19300 %N A024862 a(n) = s(1)*t(n) + s(2)*t(n-1) + ... + s(k)*t(n-k+1), where k = floor(n/2), s = natural numbers, t = odd natural numbers. %H A024862 Vincenzo Librandi, <a href="/A024862/b024862.txt">Table of n, a(n) for n = 2..1000</a> %H A024862 <a href="/index/Rec#order_07">Index entries for linear recurrences with constant coefficients</a>, signature (1,3,-3,-3,3,1,-1). %F A024862 G.f.: x^2*(3+2*x+3*x^2) / ((1+x)^3*(x-1)^4). - _R. J. Mathar_, Sep 25 2013 %F A024862 a(n) = 3*A058187(n-2) + 2*A058187(n-3) + 3*A058187(n-4). - _R. J. Mathar_, Sep 25 2013 %F A024862 From _Colin Barker_, Jan 29 2016: (Start) %F A024862 a(n) = (8*n^3 + 6*(-1)^n*n^2 + 12*n^2 + 6*(-1)^n*n - 2*n + 3*(-1)^n - 3)/48. %F A024862 a(n) = (4*n^3 + 9*n^2 + 2*n)/24 for n even. %F A024862 a(n) = (4*n^3 + 3*n^2 - 4*n - 3)/24 for n odd. (End) %F A024862 E.g.f.: (1/48)*(3*(1 - 4*x + 2*x^2)*exp(-x) + (-3 + 18*x + 36*x^2 + 8*x^3)*exp(x)). - _G. C. Greubel_, Apr 19 2023 %t A024862 CoefficientList[Series[(3+2x+3x^2)/((1+x)^3 (1-x)^4), {x,0,50}], x] (* _Vincenzo Librandi_, Sep 25 2013 *) %o A024862 (PARI) Vec(x^2*(3+2*x+3*x^2)/((1+x)^3*(x-1)^4) + O(x^100)) \\ _Colin Barker_, Jan 29 2016 %o A024862 (Magma) [((2*n-1)*(2*n+1)*(2*n+3) +3*(-1)^n*(n^2+(n+1)^2))/48: n in [2..50]]; // _G. C. Greubel_, Apr 19 2023 %o A024862 (SageMath) [((2*n-1)*(2*n+1)*(2*n+3) +3*(-1)^n*(n^2+(n+1)^2))/48 for n in range(2,51)] # _G. C. Greubel_, Apr 19 2023 %Y A024862 Cf. A058187. %K A024862 nonn,easy %O A024862 2,1 %A A024862 _Clark Kimberling_