The fun fact isn't just there for fun

Level pending

Find the number of ordered pairs of positive integers ( a , b ) (a,b) with a + b a+b prime, 1 a , b 3570 1\leq a,b \leq 3570 such that a b + 1 a + b \frac{ab+1}{a+b} is an integer.

Fun fact: 3571 3571 is the 500 500 th prime number.


The answer is 999.

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

Shamik Banerjee
Feb 8, 2014

First, an important correction. The given Fun Fact is wrong as 3581 is the 501-st prime number not 500-th.

a + b = p (prime) (a + b) divides (ab + 1) ==> p divides {a(p - a) + 1} = a*p - (a^2 - 1)

Therefore, p must divide (a^2 - 1) = (a - 1)*(a + 1) where 1 <= a <= (p - 1). p divides (a - 1) only when a = 1 and p divides (a + 1) only when a = (p - 1).

Thus, for each prime p the good ordered pairs would be = {(1, p-1); (p-1, 1)}. We know (p-1) = 1 for p = 2. Thus, there is only one ordered pair for 2 which is (1, 1). For all the other primes, there are 2 ordered pairs each.

So, the expected number of ordered pairs = 1 + (500 - 1)*2 = 999

You are right, thank you for pointing out the mistake! I have corrected it.

ZK LIn - 7 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...