OFFSET
0,1
COMMENTS
For n >= 3, a(n) is half the number of matchings in the graph consisting of an n-cycle connected to a 7-cycle by a bridge.
LINKS
FORMULA
a(n) = a(n-1) + a(n-2).
a(n) = 29*Fibonacci(n+1) - 8*Fibonacci(n).
G.f.: (8*x - 29) / (x^2 + x - 1).
E.g.f.: exp(x/2)*(145*cosh(sqrt(5)*x/2) + 13*sqrt(5)*sinh(sqrt(5)*x/2))/5. - Enrique Navarrete, Feb 28 2026
EXAMPLE
For n = 3, a(n) = 71, which is half the number of matchings in the graph of a 7-cycle joined by a bridge to a 3-cycle:
o---o---o---o o---o
| | | /
o-----o-----o-----o
MAPLE
a:= n-> (<<0|1>, <1|1>>^n. <<29, 21>>)[1, 1]:
seq(a(n), n=0..35); # Alois P. Heinz, Feb 23 2026
MATHEMATICA
a[n_]:= 29*Fibonacci[n+1] -8*Fibonacci[n]; Table[a[n], {n, 0, 40}]
Table[SeriesCoefficient[(29 -8*x)/(1 - x - x^2), {x, 0, n}], {n, 0, 40}]
PROG
(Python)
from gmpy2 import fib2
def A393414(n): return (lambda x:int(29*x[0]-8*x[1]))(fib2(n+1)) # Chai Wah Wu, Feb 28 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Birhanu Gebrehanna Habtemariam, Feb 14 2026
STATUS
approved
