Prime Pairs

Let a a be the number of ordered pairs ( p , q ) (p,q) where p p and q q are odd prime numbers, such that

p q q p = p + q p^q - q^p = p + q .

Find the value of ( a 3 ) 3 a \left| (a - 3)^{3 - a} \right| .


The answer is 27.

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.

1 solution

Rearranging, we have:

p q p = q p + q p^q - p = q^p + q

p ( p q 1 1 ) = q ( q p 1 + 1 ) p(p^{q-1} - 1) = q(q^{p-1} + 1)

This means that either p q p|q or p q p 1 + 1 p|q^{p-1} + 1

However, it is easily seen that if p q p|q , then p = q p = q , which would yield

0 = 2 p 0 = 2p or p = q = 0 p = q = 0

then, we have p q p 1 + 1 p|q^{p-1} + 1 . Since g c d ( p , q ) = 1 gcd(p,q) = 1 , then by using Fermat's Little Theorem, we have:

q p 1 1 m o d p q^{p-1} \equiv 1 \mod p

q p 1 + 1 2 m o d p q^{p-1} + 1 \equiv 2 \mod p , hence

2 0 m o d p 2 \equiv 0 \mod p , therefore p = 2 p = 2

however, 2 is not an odd prime, so we're left with the conclusion that there are no odd primes that satisfy the given condition.

Therefore a = 0 a = 0 , giving us the value of 27 \fbox{27} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...