OFFSET
1,2
COMMENTS
Equivalently, a(n) is the number of 2-matchings in the n-hypercube graph. A 2-matching is a pair of edges that do not share a vertex.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
Krishnan Balasubramanian, Topological Indices, Graph Spectra, Entropies, Laplacians, and Matching Polynomials of n-Dimensional Hypercubes, Symmetry. 2023; 15(2):557.
Eric Weisstein's World of Mathematics, Hypercube Graph.
Eric Weisstein's World of Mathematics, Matching-Generating Polynomial.
Index entries for linear recurrences with constant coefficients, signature (18,-132,504,-1056,1152,-512).
FORMULA
a(n) = A192437(n, 2^(n-1)-2) for n > 1.
From Andrew Howroyd, Feb 20 2023: (Start)
a(n) = 2^(n-2)*n*(1 - 2*n + n*2^(n-1)).
a(n) = 18*a(n-1) - 132*a(n-2) + 504*a(n-3) - 1056*a(n-4) + 1152*a(n-5) - 512*a(n-6) for n > 6.
G.f.: 2*x^2*(1 + 3*x - 46*x^2 + 88*x^3)/((1 - 2*x)*(1 - 4*x))^3.
(End)
EXAMPLE
The a(2) = 2 2-matchings are:
o---o o o
| |
o---o o o
MATHEMATICA
A360786[n_] := 2^(n - 3)*n*((2^n - 4)*n + 2);
Array[A360786, 25] (* Paolo Xausa, Jun 25 2026 *)
PROG
(PARI) a(n) = 2^(n-2)*n*(1 - 2*n + n*2^(n-1)) \\ Andrew Howroyd, Feb 20 2023
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Krishnan Balasubramanian, Feb 20 2023
EXTENSIONS
Terms a(13) and beyond from Andrew Howroyd, Feb 20 2023
STATUS
approved
