Problem :
Sereja wants to answer q queries. In each query, she is given a number N. She wants to find the number of ordered pairs (x, y) such that x and y are factors of N and x and y are coprime.
Constrainsts :
1 ≤ q ≤ 200000
1 ≤ N ≤ 500000
PROOF THE PROBLEM IS NOT FROM AN ONGOING CONTEST
The contest does have an editorial available, but i am unable to understand how the described equation was obtained.
EDITORIAL