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

简单证明

Posted by majia5 at 2009-10-24 17:27:35
In Reply To:不好意思,拜托各位能不能说得详细一点...起因经过结果~重在过程。 Posted by:KOWA at 2009-10-24 17:20:02
假设x1,x2是2个不同的根
x1^3 = a(mod b)
x2^3 = a(mod b)
->
x1^3 - x2^3 = 0(mod b)
(x1-x2)(x1^2 + x1x2+x2^2)= 0 (mod b)
而x1,x2<b,b是素数,所以
x1^2 + x1x2+x2^2= 0 (mod b)

现在题目给了你2个根x1,x2
x1^2 + x1x3+x3^2= 0 (mod b)
x2^2 + x2x3+x3^2= 0 (mod b)
->
x1^2-x2^2+x3(x1-x2)=0(mod b)
x3(x1-x2)=(x2^2 - x1^2)(mod b)
x3 = -x1-x2(mod b)
而x1,x2<b
所以ans = (2*b -x1 -x2) % b

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