Need help regarding in problem on Number Theory
I have been trying to solve this problem(576A) since one day. Problem seems too hard for me. I'm not been able to understand editorial. May anyone will explain this problem in bit more detail. Thanks.