「BZOJ1965」[Ahoi2005] SHUFFLE 洗牌

2014年12月30日3,9511

\[x*(2^m)\equiv l(mod~n+1)\]x在mod n+1下逆元是n/2+1

所以移项得\[x\equiv(n/2+1)^m*l(mod~n+1)\]

 

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
kadfin Recent comment authors
  Subscribe  
提醒
kadfin
kadfin

应该是 2在mod n+1下逆元是n/2+1