Huge powers

First two consecutive prime numbers greater than 1 0 7 10^7 are p 1 = 10000019 p_{1} = 10000019 and p 2 = 10000079 p_{2} = 10000079 respectively. Let p p be the smallest prime factor of S = p 1 2 + p 2 2 5 S = p_{1}^2 + p_{2}^2-5 . Also, let q q be the units digit of S S . What is the value of p + q p+q ?


The answer is 10.

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

Snehal Shekatkar
Jul 18, 2016

Since p 1 p_1 is prime, it is not divisible by 3 3 . Hence, either p 1 1 p_1 - 1 or p 1 + 1 p_1+1 is divisible by 3. This means ( p 1 1 ) ( p 1 + 1 ) = p 1 2 1 (p_1-1)(p_1+1)=p_1^2-1 is certainly divisible by 3 3 (One could use the Fermat's theorem to reach the same conclusion). Similar argument holds for p 2 p_2 . Hence we have,

p 1 2 + p 2 2 2 ( mod 3 ) p_{1}^2+p_2^2 \equiv 2 (\text{mod} 3)

p 1 2 + p 2 2 5 ( mod 3 ) \therefore p_{1}^2+p_2^2 \equiv 5 (\text{mod} 3)

Hence S S has p = 3 p = 3 as its smallest prime factor.

Finding units digit is easy. Since both numbers end with 9 9 , their squares would end with 1 1 and sum of their squares would end with 2 2 . Hence the units digit of S S would be q = 7 q=7 .

Hence, p + q = 10 p+q=\boxed{10}

Moderator note:

Note that we need to show that the expression is not a multiple of 2, in order to conclude that the smallest prime factor is 3.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...