Product of two primes

You are told that n = 110179 n = 110179 is the product of two primes p p and q q ( p > q p > q ). The number of positive integers less than n n that are relatively prime to n n (that is those m m such that gcd ( m , n ) = 1 \gcd(m, n) = 1 ) is 109480. Write the value of p q p - q .


The answer is 222.

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.

2 solutions

Chew-Seong Cheong
May 17, 2017

The number of positive integers less than n n that are relatively primes or coprime numbers to n n is given by Euler's totient function .

ϕ ( n ) = n k = 1 m p k 1 p k where p k is the prime factor of n \begin{aligned} \phi(n) & = n \prod_{k=1}^m \frac {p_k-1}{p_k} & \small \color{#3D99F6} \text{where }p_k \text{ is the prime factor of }n \end{aligned}

ϕ ( 110179 ) = 110179 ( p 1 ) ( q 1 ) p q = 110179 ( p 1 ) ( q 1 ) 110179 = ( p 1 ) ( q 1 ) \implies \phi (110179) = \dfrac {110179(p-1)(q-1)}{pq} = \dfrac {110179(p-1)(q-1)}{110179} = (p-1)(q-1)

( p 1 ) ( q 1 ) = 109480 p q p q + 1 = 109480 110179 p q + 1 = 109480 p + q = 700 ( p + q ) 2 = 70 0 2 p 2 + 2 p q + q 2 = 490000 p 2 + q 2 = 490000 2 ( 110179 ) = 269642 ( p q ) 2 = p 2 2 p q + q 2 = 269642 2 ( 110179 ) = 49284 p q = 49284 = 222 \begin{aligned} \implies (p-1)(q-1) & = 109480 \\ pq - p - q + 1 & = 109480 \\ 110179 - p - q + 1 & = 109480 \\ \implies p+q & = 700 \\ (p+q)^2 & = 700^2 \\ p^2 + 2pq + q^2 & = 490000 \\ p^2 + q^2 & = 490000 - 2(110179) = 269642 \\ (p-q)^2 & = p^2 - 2pq + q^2 = 269642 - 2(110179) = 49284 \\ \implies p-q & = \sqrt {49284} = \boxed{222} \end{aligned}


Note: Since p + q = 700 p+q = 700 and p q = 222 p-q=222 , p = 461 \implies p = 461 and q = 239 q = 239 both primes.

Sayantan Saha
May 17, 2017

The number of positive integers less than n = 110178. Let's assume that n p \frac{n}{p} = y + 1 and n q \frac{n}{q} = z +1. So y = n p \frac{n}{p} - 1 and z = n q \frac{n}{q} - 1. Therefore, p and q have y and z positive multiple respectively less than n. Hence y + z = (The number of positive integers less than n ) - (The number of positive integers less than n that are relatively prime to n ). So y + z = 110178 - 109480 = 698 . Putting the values of y and z ,we get: n p \frac{n}{p} - 1 + n q \frac{n}{q} - 1 = 698 . n p \frac{n}{p} + n q \frac{n}{q} = 700 . n ( p + q ) p q \frac{n(p + q)}{pq} = 700 . So p + q = 700 [ n = pq]. pq = 110179. Calculation gives us p - q = 222

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...