OFFSET
0,3
COMMENTS
An LHR-coin is a coin that can change its weight periodically from light to heavy to real to light.
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Tanya Khovanova and Konstantin Knop, Coins that Change Their Weights, arXiv:1611.09201 [math.CO], 2016.
Index entries for linear recurrences with constant coefficients, signature (3,-3,5,-4).
FORMULA
From Colin Barker, Dec 17 2016: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + 5*a(n-3) - 4*a(n-4) for n>9.
G.f.: (1 - 2*x + 3*x^2 - 5*x^3 + 6*x^4 - 2*x^5 + 4*x^6 + 4*x^7 - 7*x^8 - 4*x^9) / ((1 - x)*(1 - 2*x + x^2 - 4*x^3)).
(End)
PROG
(PARI) Vec((1 - 2*x + 3*x^2 - 5*x^3 + 6*x^4 - 2*x^5 + 4*x^6 + 4*x^7 - 7*x^8 - 4*x^9) / ((1 - x)*(1 - 2*x + x^2 - 4*x^3)) + O(x^40)) \\ Colin Barker, Dec 17 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Tanya Khovanova and Konstantin Knop, Dec 16 2016
STATUS
approved