作业帮 > 数学 > 作业

英语翻译2^x mod n = 1________________________________________Tim

来源:学生作业帮 编辑:搜狗做题网作业帮 分类:数学作业 时间:2024/05/06 03:34:26
英语翻译
2^x mod n = 1
________________________________________
Time limit:1 Seconds Memory limit:32768K
________________________________________
Give a number n,find the minimum x that satisfies 2^x mod n = 1.
Input
One positive integer on each line,the value of n.
Output
If the minimum x exists,print a line with 2^x mod n = 1.
Print 2^?mod n = 1 otherwise.
You should replace x and n with specific numbers.
Sample Input
2
5
Sample Output
2^?mod 2 = 1
2^4 mod 5 = 1
英语翻译2^x mod n = 1________________________________________Tim
给一个号码,找出最小x,满足2的x次方的绝对值 n=1
输入
在每一行输入一个正整数
输出
如果存在最小值x,按照2的x次方的绝对值 n=1输入
否则输入2^?mod n = 1
你需要用特殊数字取代x和n
输入举例
2
5
输出举例
2^?mod 2 = 1
2^4 mod 5 = 1
好开心