This problem is in Contest(s) below:
Contest 1174:数论入门
Contest 1261:简单数论题
Contest 1342:数论的题
Contest 1281:数论入门
Contest 1082:数论入门