OFFSET
1,2
COMMENTS
Conjecture: For n > 1, a(n) is the maximum eigenvalue of a 2*(n-1) X 2*(n-1) square matrix M defined as M[i,j,n] = j + n*(i-1) if i is odd and M[i,j,n] = n*i - j + 1 if i is even (see A317614). - Stefano Spezia, Dec 27 2018
Connections can be made to A022144 and A010014. Namely, a formula for A022144 is (2*n+1)^2 - (2*n-1)^2. A formula for A010014 is (2*n+1)^3 - (2*n-1)^3. The general form can be represented by (2*n+1)^d - (2*n-1)^d, where d designates the number of dimensions. When d is 4, a(n) = ((2*(n-1)+1)^4 - (2*(n-1)-1)^4)/16, namely the general form shifted by 1 and divided by 16 is a(n). - Yigit Oktar, Aug 16 2024
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
G.f.: x^2*(5 + 14*x + 5*x^2)/(1 - x)^4. - Colin Barker, Sep 01 2018
a(n) = 4*a(n - 1) - 6*a(n - 2) + 4*a(n - 3) - a(n - 4) for n > 4. - Stefano Spezia, Sep 01 2018
E.g.f.: exp(x)*(5*x + 12*x^2 + 4*x^3). - Stefano Spezia, Jan 15 2019
a(n) = ((2*(n-1)+1)^4 - (2*(n-1)-1)^4)/16. - Yigit Oktar, Aug 16 2024
MATHEMATICA
Table[(n - 1) (4 n^2 - 8 n + 5), {n, 1, 50}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {0, 5, 34, 111}, 50] (* or *) CoefficientList[Series[x (5 + 14 x + 5 x^2)/(1 - x)^4, {x, 0, 50}], x] (* Stefano Spezia, Sep 01 2018 *)
PROG
(PARI) a(n) = (n - 1)*(4*n^2 - 8*n + 5)
(PARI) concat(0, Vec(x^2*(5 + 14*x + 5*x^2)/(1 - x)^4 + O(x^50))) \\ Colin Barker, Sep 01 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Sep 01 2018
STATUS
approved