This problem is in Contest(s) below:
Contest 1467:组合数学入门
Contest 1470:组合数学进阶
Contest 1281:数论入门
Contest 1082:数论入门
Contest 1174:数论入门
Contest 1342:数论的题