OFFSET
4,1
LINKS
R. H. Hardin, Table of n, a(n) for n = 4..500
Martin Griffiths, On a Matrix Arising from a Family of Iterated Self-Compositions, Journal of Integer Sequences, 18 (2015), #15.11.8.
Index entries for linear recurrences with constant coefficients, signature (2,0,-1).
FORMULA
G.f.: -x^4*(-13 + 5*x + 9*x^2) / ((x - 1)*(x^2 + x - 1)). - R. J. Mathar, Jan 19 2011
a(n) = 4*Fibonacci(n) + 1. - Bruno Berselli, Jul 26 2017
From Colin Barker, Jul 26 2017: (Start)
a(n) = 1 - (4*(((1 - sqrt(5))/2)^n - ((1 + sqrt(5))/2)^n))/sqrt(5) for n>3.
a(n) = 2*a(n-1) - a(n-3) for n>6.
(End)
PROG
(PARI) Vec(-x^4*(-13 + 5*x + 9*x^2) / ((x - 1)*(x^2 + x - 1)) + O(x^60)) \\ Colin Barker, Jul 26 2017
(Python)
from sympy import fibonacci
def a(n): return 4*fibonacci(n) + 1
print([a(n) for n in range(4, 101)]) # Indranil Ghosh, Jul 26 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Aug 14 2009
STATUS
approved