Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:如果phi(n) 不是满足 2^x mod n == 1 的最小的x

Posted by frkstyc at 2007-08-26 21:13:32 on Problem 3358
In Reply To:如果phi(n) 不是满足 2^x mod n == 1 的最小的x Posted by:Iamjw at 2007-08-26 14:57:26
证明2^k mod n,k=0,1,2,...的循环长度是phi(n)的约数吧。n是奇数的情况比较好处理,
直接套Lagrange定理就完了。n是偶数的情况则考虑n除掉所有2因子剩下的那个奇数n',
然后利用phi(n')是phi(n)的约数和前面关于奇数的结论。

把这个结论结合离散对数的东西利用起来,快不快不知道,我觉得至少是一种办法吧。

> 我是枚举phi(n)的所有约数的。 有没有更确切的结论呢?

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator