#Lutece2499. An Easy Math Problem III
An Easy Math Problem III
Migrated from Lutece 2499 An Easy Math Problem III
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
一个环上有 个点,相邻的两个点之间的距离为 米,第 个点与第 个点相邻。
小 A 初始时在第 个点,第 个时刻向前走 米,求最小正整数 ,使得第 时刻结束正好回到第 个点。
Input
第一行一个整数 ,表示数据组数;
接下来一个整数 。
Output
一共 行,每行一个正整数表示答案。
Samples
5
2
4
6
8
10
3
7
3
15
4
Resources
2020 UESTC ICPC Training for Math and Geometry