Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:计算((p^(eB+1)-1)/(p-1))%MODIn Reply To:Re:计算((p^(eB+1)-1)/(p-1))%MOD Posted by:mxd543 at 2009-09-16 21:58:04 > > 我感觉(rem-1+MOD*(p-1))%(p-1)不一定为0. 一定的。p^(eB+1)-1=kMOD(p-1)+rem;两边对p-1取模。这里的rem=(p^(eB+1)-1)%MOD(p-1) Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator