OFFSET
1,1
COMMENTS
LINKS
Colin Barker, Table of n, a(n) for n = 1..497
Index entries for linear recurrences with constant coefficients, signature (101,101,-1).
FORMULA
From Colin Barker, Jun 03 2015: (Start)
a(n) = 101*a(n-1) + 101*a(n-2) - a(n-3).
G.f.: x*(99+102*x-x^2)/((1+x)*(1-102*x+x^2)). (End)
a(n) = (1/26)*(25*A097726(n) + (-1)^n). - G. C. Greubel, Feb 16 2023
E.g.f.: (5*exp(51*x)*(5*cosh(10*sqrt(26)*x) + sqrt(26)*sinh(10*sqrt(26)*x)) + exp(-x) - 26)/26. - Stefano Spezia, Aug 05 2024
MATHEMATICA
Table[(5*LucasL[2*n+1, 10] +2*(-1)^n)/52, {n, 40}] (* G. C. Greubel, Feb 16 2023 *)
PROG
(PARI) Vec(-x*(x^2-102*x-99) / ((x+1)*(x^2-102*x+1)) + O(x^20)) \\ Colin Barker, Jun 03 2015
(Magma) I:=[99, 10101, 1030199]; [n le 3 select I[n] else 101*Self(n-1) +101*Self(n-2) -Self(n-3): n in [1..40]]; // G. C. Greubel, Feb 16 2023
(SageMath)
A097726=BinaryRecurrenceSequence(102, -1, 1, 103)
[(1/26)*(25*A097726(n) + (-1)^n) for n in range(1, 41)] # G. C. Greubel, Feb 16 2023
CROSSREFS
KEYWORD
nonn,easy,frac
AUTHOR
Clark Kimberling, Sep 22 2011
STATUS
approved