A121442 Expansion of (1-x^2)/(1-x-9*x^2+x^3).
1, 1, 9, 17, 97, 241, 1097, 3169, 12801, 40225, 152265, 501489, 1831649, 6192785, 22176137, 76079553, 269472001, 932011841, 3281180297, 11399814865, 39998425697, 139315579185, 487901595593, 1701743382561, 5953542163713, 20781331011169, 72661467102025
Offset: 0
Links
- G. C. Greubel, Table of n, a(n) for n = 0..1000
- Roman Witula, Damian Slota and Adam Warzynski, Quasi-Fibonacci Numbers of the Seventh Order, J. Integer Seq., 9 (2006), Article 06.4.3.
- Index entries for linear recurrences with constant coefficients, signature (1, 9, -1).
Programs
-
Magma
I:=[1,1,9]; [n le 3 select I[n] else Self(n-1)+9*Self(n-2)-Self(n-3): n in [1..30]]; // Vincenzo Librandi, Sep 18 2015
-
Mathematica
LinearRecurrence[{1,9,-1},{1,1,9},50] (* Roman Witula, Aug 08 2012 *) CoefficientList[Series[(1 - x^2)/(1 - x - 9 x^2 + x^3), {x, 0, 40}], x] (* Vincenzo Librandi, Sep 18 2015 *)
-
PARI
Vec((1-x^2)/(1-x-9*x^2+x^3)+O(x^99)) \\ Charles R Greathouse IV, Sep 23 2012
Formula
a(0)=a(1)=1, a(2)=9, a(n+1) = a(n)+9*a(n-1)-a(n-2) for n>=2.
7*a(n) = (2-c(4))*(1-2*c(1))^n + (2-c(1))*(1-2*c(2))^n + (2-c(2))*(1-2*c(4))^n = (s(2))^2*(1-2*c(1))^n + (s(4))^2*(1-2*c(2))^n + (s(1))^2*(1-2*c(4))^n, where c(j):=2*Cos(2Pi*j/7) and s(j):=2*Sin(2Pi*j/7) - it is the special case, for d=2, of the Binet's formula for the respective quasi-Fibonacci number A(n;d) discussed in Witula-Slota-Warzynski's paper (see also A121449). - Roman Witula, Aug 08 2012
Extensions
Corrected by T. D. Noe, Oct 25 2006
More terms from Vincenzo Librandi, Sep 18 2015
Comments