Given and , count integers with such that .
Constraints: . The large values mean you can't iterate through all .
This problem connects GCD properties to Euler's totient function.
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
CF 1295D - count values with same GCD
Given and , count integers with such that .
Constraints: . The large values mean you can't iterate through all .
This problem connects GCD properties to Euler's totient function.