OFFSET
0,3
COMMENTS
Pisano period lengths: 1, 1, 8, 1, 4, 8, 12, 1, 24, 4, 5, 8, 21, 12, 8, 1, 16, 24, 45, 4, ... - R. J. Mathar, Aug 10 2012
Number of compositions of n-1 into parts 1 (of 7 sorts) and 2 (of 10 sorts). - Joerg Arndt, Oct 15 2013
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,10).
FORMULA
a(n) = 7*a(n-1) + 10*a(n-2).
G.f.: Q(0)*x/(2-7*x), where Q(k) = 1 + 1/( 1 - x*(89*k-49)/( x*(89*k+40) - 14/Q(k+1) )); (continued fraction). - Sergei N. Gladkovskii, Oct 14 2013
MATHEMATICA
LinearRecurrence[{7, 10}, {0, 1}, 30] (* Vincenzo Librandi, Nov 14 2012 *)
CoefficientList[Series[x/(1-7x-10x^2), {x, 0, 40}], x] (* Harvey P. Dale, Feb 06 2024 *)
PROG
(Sage) [lucas_number1(n, 7, -10) for n in range(0, 20)] # Zerinvary Lajos, Apr 24 2009
(Magma) [n le 2 select n-1 else 7*Self(n-1) + 10*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Nov 14 2012
(PARI) x='x+O('x^30); concat([0], Vec(x/(1-7*x-10*x^2))) \\ G. C. Greubel, Jan 06 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved