2

My first thought was to use Wilson's theorem to get rid of the numerator: $$ \dfrac{255!}{128!\cdot 127!} \equiv \dfrac{1}{128!\cdot 127!} \mod 257 $$ But I'm stuck on how to find the inverses of the denominator. If $257$ wasn't prime I could try factoring it and solving a system of congruence. I also don't see a nice way to group the factorials by inverses.

Bill Dubuque
  • 272,048

1 Answers1

10

Modulo $257,$ $$128!\equiv\prod_{k=1}^{128}(257-k)=\frac{256!}{128!}$$ hence $$\frac{255!}{128!127!}\equiv \frac{255!128!}{256!127!}=\frac{128}{256}=\frac12\equiv129.$$

Anne Bauval
  • 34,650