Can Someone Help Me To understand the solution to this problem

Revision en1, by lofy234234, 2022-10-19 17:42:53

in this problem : https://codeforces.me/contest/1295/problem/D the solution is phi(m/gcd(a,m)) why m/gcd(a,m) ????

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English lofy234234 2022-10-19 17:42:53 179 Initial revision (published)