OFFSET
1,2
COMMENTS
The 2 equations are equivalent to the Pell equation x^2 - 117*y^2 = 1, with x = (117*k+11)/2 and y = A*B/2, case C = 9 in A160682.
LINKS
Index entries for linear recurrences with constant coefficients, signature (120,-120,1).
FORMULA
a(n) = 120*(a(n-1) - a(n-2)) + a(n-3).
a(n) = ((11+w)*((119+11*w)/2)^(n-1) + (11-w)*((119-11*w)/2)^(n-1) - 22)/234 where w = sqrt(117). [corrected by Amiram Eldar, Dec 02 2024]
a(n) = floor((11+w)*((119+11*w)/2)^(n-1) - 21)/234. [corrected by Amiram Eldar, Dec 02 2024]
G.f.: -11*x^2/((x-1)*(x^2-119*x+1)).
From Amiram Eldar, Dec 02 2024: (Start)
a(n) == 0 (mod 11).
Sum_{n>=2} 1/a(n) = ((sqrt(13)-3)/2)^2 = A085550^2. (End)
MAPLE
t:=0: for n from 0 to 1000000 do a:=sqrt(9*n+1): b:=sqrt(13*n+1):
if (trunc(a)=a) and (trunc(b)=b) then t:=t+1: print(t, n, a, b): end if: end do:
MATHEMATICA
LinearRecurrence[{120, -120, 1}, {0, 11, 1320}, 20] (* Harvey P. Dale, Apr 01 2024, corrected by Amiram Eldar, Dec 02 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Weisenhorn, Jun 14 2009
EXTENSIONS
Edited and extended by R. J. Mathar, Sep 02 2009
Missing term a(2) = 11 inserted by Amiram Eldar, Dec 02 2024
STATUS
approved