Solutions of exponential diophantine equation How would I go about finding the solutions to the exponential diophantine equation  $18n+10=2^k$ ?
Hint: You want $2^k \equiv 10 \mod 18$.  Certainly $2^k \equiv 0 \equiv 10 \mod 2$ for $k \ge 1$, so it is sufficient for $2^k \equiv 1 \equiv 10 \equiv \mod 9$.  So try a few powers of $2$ until you find one congruent to $1$ mod $9$...
Given,

$18n + 10 = 2^k$

i.e. $$[(2)(3^2)(n) + (2)(5)] = 2^k$$

i.e. $$(2)[(3^2)(n) + (3+2)] = 2^k$$

i.e. $$(2)[(3)(3)(n) + (3) + 2] = 2^k$$

i.e. $$(2)[(3)((3)(n) + 1) + 2] = 2^k$$

i.e. $2^{3 + 1 + 2}$ is a solution of this equation for $k = (3 + 1 + 2)$

i.e. $18n + 10 = 2^{3 + 1 + 2}$

i.e. $18n + 10 = 64$

i.e. $18n = 54$

i.e. $k=6, n=3$ is a solution of the equation $18n + 10 = 2^k$