OFFSET
1,6
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..500
Index entries for linear recurrences with constant coefficients, signature (16,-112,448,-1120,1792,-1792,1024,-256).
FORMULA
a(n) = 2^(n-12)*n*(n-1)*(n-2)*(n-4)*(n-5)*(n+2)*(n+9)/90 for n != 3.
G.f.: x^6*(1 - x)*(5 - 12*x + 16*x^2 - 12*x^3 + 4*x^4)/(1 - 2*x)^8. - Andrew Howroyd, Nov 14 2025
EXAMPLE
For n=7 we have one 3-node path and two 2-node paths. Call two paths adjacent if we can choose one node from each path so that the two nodes are adjacent vertices of the n-gon. Then either each pair of paths is adjacent, or the two 2-node paths are not adjacent, or a 2-node path is not adjacent to the 3-node path. In each of these three cases there are 7 choices for the set of nodes for the 3-node path and 3 ways to connect them, and then the 2-node paths are uniquely determined. Thus a(7) = 3*7*3 = 63.
MATHEMATICA
A362786[n_] := Quotient[2^(n-13)*n*(n-1)*(n-2)*(n-4)*(n-5)*(n+2)*(n+9), 45];
Array[A362786, 30] (* Paolo Xausa, Jun 26 2026 *)
PROG
(PARI) a(n) = if(n<6, 0, 2^(n-12)*n*(n-1)*(n-2)*(n-4)*(n-5)*(n+2)*(n+9)/90) \\ Andrew Howroyd, Nov 27 2025
CROSSREFS
Column k=3 of A390908.
KEYWORD
nonn,easy,changed
AUTHOR
Ivaylo Kortezov, May 04 2023
EXTENSIONS
a(1)=a(2)=0 prepended by Andrew Howroyd, Nov 27 2025
STATUS
approved
