Subtracting powers

Find the smallest possible positive value of 3 3 m 7 n , 33^m - 7^n, where m m and n n be positive integers.


The answer is 26.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Denton Young
Apr 2, 2017

If m = 1 m = 1 and n = 1 n= 1 , the difference is 26.

To show that no smaller difference is possible, we check the remainder when divided by 16 and by 3:

When divided by 16,
3 3 m 1 ( m o d 16 ) , 33^m \equiv 1 \pmod {16}, 7 2 k 1 ( m o d 16 ) , 7^{2k} \equiv 1 \pmod{16}, 7 2 k + 1 7 ( m o d 16 ) 7^{2k+1} \equiv 7 \pmod {16}
So 3 3 m 7 n 0 or 10 ( m o d 16 ) 33^m - 7^n \equiv 0 \text{ or } 10 \pmod{16}
Possibilities are 0, 10, 16, and 26.


When divided by 3,
33 0 ( m o d 3 ) 33 ≡ 0 \pmod {3} and 7 1 ( m o d 3 ) 7 ≡ 1 \pmod {3}
So 3 3 m 7 n 2 ( m o d 3 ) 33^m - 7^n ≡ 2 \pmod {3}

Thus 26 is the smallest possibility, which has been achieved by 3 3 1 7 1 = 26 33 ^ 1 - 7 ^ 1 = 26 .

Where does the 16 come from?

Jonathan Drucker - 4 years, 1 month ago

Log in to reply

The 16 and 3 are clever choices designed to narrow down the set of possible differences. There's no hard and fast rule about which modulus to choose for these kind of problems, but the moduli are usually chosen to give a residue of 0 or 1 for some or all of the terms.

See Diophantine Equations - Modular Arithmetic Considerations for some similar problems.

Andrew Hayes Staff - 4 years, 1 month ago

Excellent problem and solution! I edited your solution a bit -- just to fix some of the formatting.

Andrew Hayes Staff - 4 years, 2 months ago

Log in to reply

Thank you!

Denton Young - 4 years, 2 months ago

In fact, where do both the 16 and the 3 come from? And given the possibilities, how does that mean that 26 is the smallest possible outcome?

Muhammed Li - 4 years, 1 month ago

Log in to reply

See my comment to Jonathan for why the moduli were chosen.

26 is the smallest possible value because it is the smallest possible solution to the system:

{ 3 3 m 7 n 0 or 10 ( m o d 16 ) 3 3 m 7 n 2 ( m o d 3 ) \begin{cases} 33^m-7^n \equiv 0 \text{ or } 10 \pmod{16} \\ 33^m-7^n \equiv 2 \pmod{3} \end{cases}

Andrew Hayes Staff - 4 years, 1 month ago

I wrote the answer as 26, and it said incorrect. I then wrote 16, but that was 7^2-33^1 , but 33^1-7^2= -16, so that was wrong. I didn't have a proof, but why did it say that 26 was incorrect?

Vivian James - 4 years, 1 month ago

What if m is 1 and n is 2; or m is 2 and n is 5 or even 9? Think I have missed something obvious here!

Gary Ford - 4 years, 1 month ago

Log in to reply

The problem asks for the smallest positive value. The differences you cited are negative.

Andrew Hayes Staff - 4 years, 1 month ago
Munem Shahriar
Aug 29, 2017

We know that, anything 1 = anything \text{anything}^1 = \text{anything} .

Since 1 is a positive integer, so m = 1 m = 1 and n = 1 n = 1

3 3 1 7 1 = 33 7 = 26 \Rightarrow 33^1 - 7^1 = 33 - 7 = \boxed{26}

Lance Fernando
May 8, 2017

As the condition of m and n barely says "be positive integers", it means that m and n could be equal. Having m=2 and n=1, the value is too large to be the answer. Therefore, m=n=1 would be the values, while evaluating the expression gives us 26 as the minima (remember that the result should be a POSITIVE INTEGER).

Why cannot there be a solution when n > m n > m ?

Jesse Nieminen - 3 years, 12 months ago

Yes it can be possible to take n>m, but the gap between those will get more wider. There will be only one case when m=n=1 to find min difference.

Gautam Arya - 3 years, 11 months ago

Log in to reply

Can you show that the gap gets wider? Yes, if m = n m=n , then that is the minimum, but that doesn't mean that it is always the minimum.

Jesse Nieminen - 3 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...