Let x and y be positive integers with no prime factors larger than 5. Find all such $x$ and $y$ which satisfy $$x^2-y^2=2^k$$ where the range of k is $1\leq k\leq2019$.
I managed to solve the equation for general solutions where $(x, y)=(3 \times 2^z, 2^z)$ and $(x, y)=(5 \times 2^z, 3 \times 2^z)$ for non-negative integers for $z$. However, I still have trouble finding the range of values for $z$ that fit the given range of $k$.
Given (a,b) such that $a^2-b^2=2^m$, we just simply multiple by $2^z$ to get $2^{m+z}$. Any (x,y) can be represented as $2^z \cdot (a,b)$, so we need only consider this form.
To find all the unique tuples (a, b) that fit your requirements, note that they must be coprime. Also, a two cannot divide a or b, since if (a,b) is coprime, you’d get an odd difference. I’ll leave it to you to do the work from there.
edit: using Tob Ernack’s work with the idea of (a,b) tuples, we get the additional facts that $a-2=b=2^i-1$ for some integer i. Combining this constraint upon the others, solving and proving all valid tuples should be easy, I’ll finish working that out later.