OFFSET
1,4
COMMENTS
Euler (unpublished) showed there is a unique positive solution (x,y) for every positive n.
REFERENCES
Engel, Problem-Solving Strategies.
FORMULA
Note that the equation is equivalent to 2^(n+2) = (2y-1)^2 + 7 (2x-1)^2, so it is related to norms of elements of the ring of integers in the quadratic field Q(sqrt(-7)) and Euler's claim presumably follows from unique factorization in that field. From this we can get a formula for the x's and y's: Let a(n) and b(n) be the unique rational numbers such that a(n) + b(n) sqrt(-7) = ((1 + sqrt(-7))/2)^n. I.e., a(n) = (((1 + sqrt(-7))/2)^n + ((1 - sqrt(-7))/2)^n)/2. - Dean Hickerson, Oct 19 2002
a(n) = (1/sqrt(7))*2^(n/2)*abs(sin(n*t))+1/2, where t=arctan(sqrt(7)). - Paul Boddington, Jan 23 2004
a(n) = (1+2*A077020(n+2))/2. - R. J. Mathar, May 08 2019
PROG
(PARI) p(n, x, y)=2^n-2-7*(x^2-x)-(y^2-y) a(n)=if(n<0, 0, x=1; while(frac(real(component(polroots(p(n, x, y)), 2)))>0, x++); x)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ed Pegg Jr, Oct 17 2002
EXTENSIONS
More terms from Benoit Cloitre, Oct 24 2002
Definition corrected by Harvey P. Dale, Dec 15 2018
STATUS
approved