Question: Suppose that n is the product of distinct primes p and q, so n=pq
Show that p and q are the roots of the quadratic equation
x^2 -(n+1 -φ(n))x + n
Hence if n and φ(n) are known then n can be easily factored.
So far I know that φ(n)=(p-1)(q-1) and that φ(n)= #{1≤x≤n : gcd(x,n)=1}
Any guidance on how to proceed to start generating this quadratic would be greatly appreciated!