A099925 a(n) = Lucas(n) + (-1)^n.
3, 0, 4, 3, 8, 10, 19, 28, 48, 75, 124, 198, 323, 520, 844, 1363, 2208, 3570, 5779, 9348, 15128, 24475, 39604, 64078, 103683, 167760, 271444, 439203, 710648, 1149850, 1860499, 3010348, 4870848, 7881195, 12752044, 20633238, 33385283, 54018520, 87403804
Offset: 0
Links
- Colin Barker, Table of n, a(n) for n = 0..1000
- Yüksel Soykan, Generalized Pell-Padovan Numbers, Asian Journal of Advanced Research and Reports (2020) Vol. 11, No. 2, 8-28, Article No. 57839.
- Index entries for linear recurrences with constant coefficients, signature (0,2,1).
Programs
-
Mathematica
CoefficientList[Series[(3 - 2 x^2)/((1 + x) (1 - x - x^2)), {x, 0, 38}], x] (* Michael De Vlieger, Sep 16 2020 *)
-
PARI
Vec((3-2*x^2)/((1+x)*(1-x-x^2)) + O(x^40)) \\ Colin Barker, Jun 03 2016
Formula
G.f.: (3-2*x^2)/((1+x)*(1-x-x^2)).
a(0) = 3, a(1) = 0, a(2) = 4 and a(n) = 2*a(n-2) + a(n-3) for n >= 3. - Peter Bala, Nov 06 2013
a(n) = A068397(n) - 1 for n>2.
a(n) = ((-1)^n+(1/2*(1-sqrt(5)))^n+(1/2*(1+sqrt(5)))^n). - Colin Barker, Jun 03 2016
Comments