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 A059329 #35 Apr 07 2025 05:06:28 %S A059329 1,2,7,12,25,38,63,88,129,170,231,292,377,462,575,688,833,978,1159, %T A059329 1340,1561,1782,2047,2312,2625,2938,3303,3668,4089,4510,4991,5472, %U A059329 6017,6562,7175,7788,8473,9158,9919,10680,11521,12362,13287,14212 %N A059329 Number of 3 X 3 matrices, with elements from {0,...,n}, having the property that the middle element of each of the eight 3-element horizontal, vertical and diagonal lines equals the average of the two end elements. %C A059329 The bisections of the first differences of {a(n)} give A001844 (the centered triangular numbers n^2+(n-1)^2). %C A059329 Quasipolynomial of order 2. - _Charles R Greathouse IV_, Dec 07 2011 %C A059329 Also, the number of 3 X 3 magic squares with elements from {0,...,n} and with duplicate elements allowed. If [[a,b,c], [d,e,f], [g,h,i]] satisfies the property in the description of this sequence, then [[h,a,f], [c,e,g], [d,i,b]] is a magic square, and conversely. - _David Radcliffe_, Apr 13 2020 %H A059329 G. C. Greubel, <a href="/A059329/b059329.txt">Table of n, a(n) for n = 0..1000</a> %H A059329 Ronald Cools, Ian H. Sloan, <a href="https://doi.org/10.1090/S0025-5718-96-00767-3">Minimial cubature formulae of trigonometric degree</a>, Math. Comp. 65 (216) (1996) 1583-1600. Table 1 dimension 3. %H A059329 <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (2,1,-4,1,2,-1). %F A059329 From _Frank Ellermann_: (Start) %F A059329 even: a(2*n) = (4*n^3 + 6*n^2 + 8*n + 3)/3. %F A059329 odd: a(2*n-1) = (4*n^3 + 2*n)/3. (End) %F A059329 a(n) = Sum_{k=0..n} A109613(k)*A109613(n-k). - _Reinhard Zumkeller_, Dec 05 2009 %F A059329 From _Colin Barker_, Mar 29 2013: (Start) %F A059329 a(n) = ((1+n)*(9+3*(-1)^n+4*n+2*n^2))/12. %F A059329 G.f.: (x^2+1)^2 / ((x-1)^4*(x+1)^2). (End) %F A059329 E.g.f.: (1/12)*(3*(1 - x)*exp(-x) + (9 + 21*x + 12*x^2 + 2*x^3)*exp(x)). - _G. C. Greubel_, Jan 07 2017 %t A059329 LinearRecurrence[{2, 1, -4, 1, 2, -1}, {1, 2, 7, 12, 25, 38}, 50] (* _G. C. Greubel_, Jan 07 2017 *) %o A059329 (PARI) a(n)=if(n%2,4*n^3+2*n,4*n^3+6*n^2+8*n+3)/3 \\ _Charles R Greathouse IV_, Dec 07 2011 %K A059329 nonn,easy %O A059329 0,2 %A A059329 _John W. Layman_, Jan 26 2001