Stand With Ukraine

Thursday, January 14, 2010

Problem from Number Theory

Recently my friend asked me, whether I could solve an interesting problem. Since I am into the stuff like that(i.e. during the vacations I had fun with mathematical programming). And the statement of the problem was very simple so I just could not help not to try to solve it. So here is my solution. If there are any errors, or something is not clear, be my guest and comment.

Find all m and n that
2n - 3m = 1, m,nN.


Solution.

The pairs (n,m) = (2,1); (1,0) obviously satisfy the relation.


Below I prove that there are no other solutions to this equation.
Let's consider n>4 and m > 2.
2n - 1 = 3m ⇒ (2 - 1)(2n - 1 + 2n - 2 + … + 1) = 3m ⇒ 2n - 1 + 2n - 2 + … + 1 = 3m
For the equality to hold 2n - 1 + 2n - 2 + … + 1 ≡ 0 mod 3 ⇒ 2n - 1 + 2n - 2 + … + 1 = 2n - 2(2 + 1) + … + (2 + 1).
We can construct these pairs because if not, we'll have the situation 2n - 1 + B = 3m, where
B = 2n - 3(2 + 1) + … + (2 + 1) divides by 3, but 2n - 1 does not divide by 3, so n (the number of terms in the left hand side of the obtained equation) is even, and it is possible to obtain the following equation:
2n - 2 + 2n - 4 + … + 22 + 1 = 3m - 1
Let's consider the left hand side once more. We obtained n/2 terms in the left hand side of the equation. Which comprise the sum of terms with the powers n - 2, n - 4,…,0.
There are 2 possible situations:

  • n/2 is even, then we can rewrite the equation in the following form:
    2n - 4(22 + 1) + … + (22 + 1) = 3m - 1 ⇒ 5(2n - 4 + … + 1) = 3m - 1, this equation does not have solutions since 3m - 1 does not divide by 5.

  • n/2 is odd, then
    1 + 22 + 24 ≡ 0 mod 3⇒1 + 22 + 24 + 26 does not divide by 3.
    1 + 22 + 24 + 26 + 28 + 210 = D ≡ 0 mod 3 ⇒ D - 210 = 1 + 22 + 24 + 26 + 28 does not divide by 3.
    From the previous 2 statements one can see that the left hand side sum divides by 3
    only if n/2 = 3k, and since n/2 is odd, k = 2p + 1,p = 0…∞.
    For this case we have
    (1 + 22 + 24)(1 + 26 + 212 + … + 2n - 6) = 3m - 1 ⇒ 21(1 + 26 + 212 + … + 2n - 6) = 3m - 1
    ⇒ 7(1 + 26 + 212 + … + 2n - 6) = 3m - 2. Which is not possible, since 3m - 2 does not divide by 7.

So the final answer is: (n,m) = (2,1); (1,0).

1 comment:

Unknown said...

Первый Нах!