#Lutece0284. The lastest Math theory problem
The lastest Math theory problem
Migrated from Lutece 284 The lastest Math theory problem
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
There is a positive integer ,satisfied that equals , equals and so on. Then, I want you to tell me the smallest .
Input
Input is a integer , then n numbers described above.
Output
If there exists such a ,output mod , else -1
instead.
Samples
1
323
2
17 19
323
3493625
Note
The data used in this problem is unofficial data prepared by VioletWall. So any mistake here does not imply mistake in the offcial judge data.
Resources
HDOJ Monthly Contest – 2010.06.05