OFFSET
2,1
LINKS
Colin Barker, Table of n, a(n) for n = 2..1000
FORMULA
For n = 3*k, a(n) = Lucas(4*n) - 2. For all other n, a(n) = Lucas(4*n) - Lucas(2*n).
Empirical g.f.: 4*x^2*(10 + 10*x - 10*x^2 - 139*x^3 + 13*x^4 - 48*x^5 + 144*x^6 - 16*x^7 + 2*x^8 - 7*x^9 + x^10) / ((1 - x)*(1 - 7*x + x^2)*(1 - 3*x + x^2)*(1 + x + x^2)*(1 + 3*x + 8*x^2 + 3*x^3 + x^4)). - Colin Barker, Mar 10 2016
PROG
(PARI) lucas(n) = fibonacci(n+1) + fibonacci(n-1)
a(n) = if(n%3==0, lucas(4*n)-2, lucas(4*n)-lucas(2*n)) \\ Colin Barker, Mar 10 2016
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Thomas Baruchel, Sep 21 2003
STATUS
approved