OFFSET
0,2
COMMENTS
a(n) is the numerator of the continued fraction [1,...,1,2,...,2] with n 1's followed by n 2's.
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,7,2,-1).
FORMULA
EXAMPLE
For n=3, a(3)=46 which is F(3)*P(3) + F(4)*P(4) = 2*5 + 3*12 = 46. Also, the continued fraction [1,1,1,2,2,2] with 3 1's followed by 3 2's has numerator 46.
MATHEMATICA
Table[Fibonacci[n] Fibonacci[n, 2] + Fibonacci[n + 1] Fibonacci[n + 1, 2], {n, 0, 30}]
PROG
(PARI) P(n) = ([2, 1; 1, 0]^n)[2, 1]; \\ A000129
a(n) = fibonacci(n)*P(n)+ fibonacci(n+1)*P(n+1); \\ Michel Marcus, Aug 18 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Greg Dresden and Hexuan Wang, Aug 17 2021
STATUS
approved