OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
S. Barbero, U. Cerruti, and N. Murru, On polynomial solutions of the Diophantine equation (x + y - 1)^2 = wxy, Rendiconti Sem. Mat. Univ. Pol. Torino (2020) Vol. 78, No. 1, 5-12.
Index entries for linear recurrences with constant coefficients, signature (11,-11,1).
FORMULA
a(n) = (T(n, 5)-1)/4 with Chebyshev's polynomials of the first kind evaluated at x=5: T(n, 5) = A001079(n) = ((5 + 2*sqrt(6))^n + (5 - 2*sqrt(6))^n)/2.
a(n) = 10*a(n-1) - a(n-2) + 2, n >= 2, a(0)=0, a(1)=1.
a(n) = 11*a(n-1) - 11*a(n-2) + a(n-3), n >= 3, a(0)=0, a(1)=1, a(2)=12.
G.f.: x*(1+x)/((1-x)*(1-10*x+x^2)) = x*(1+x)/(1-11*x+11*x^2-x^3) (from the Stephan link, see A092184).
a(n) = A132596(n) / 2. - Peter Bala, Dec 31 2012
MATHEMATICA
LinearRecurrence[{11, -11, 1}, {0, 1, 12}, 30] (* G. C. Greubel, May 24 2019 *)
PROG
(PARI) my(x='x+O('x^30)); concat([0], Vec(x*(1+x)/((1-x)*(1-10*x+x^2)))) \\ G. C. Greubel, May 24 2019
(Magma) I:=[0, 1, 12]; [n le 3 select I[n] else 11*Self(n-1)-11*Self(n-2) + Self(n-3): n in [1..30]]; // G. C. Greubel, May 24 2019
(Sage) (x*(1+x)/((1-x)*(1-10*x+x^2))).series(x, 30).coefficients(x, sparse=False) # G. C. Greubel, May 24 2019
(GAP) a:=[0, 1, 12];; for n in [4..30] do a[n]:=11*a[n-1]-11*a[n-2]+ a[n-3]; od; a; # G. C. Greubel, May 24 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wolfdieter Lang, Oct 18 2004
STATUS
approved