Unofficial Editorial - INVSMOD2

Problem Code : INVSMOD2

Hint 1

Page 7, Theorem 3 of

Hint 2

TonyK comment on

Special Hint

If you didn’t get the question even after visiting the above links during contest, here’s an easy Video Editorial.

PS : Stay tuned for more short editorials. :slight_smile:


Short editorial? Links to a 13 pages article! :roll_eyes:
Anyway, good contribution, I also came up with Knuth’s formula through this paper

Waiting for the official editorial, looking for an alternative approach


Yeah, it was kind of a stumble upon situation. Also, to make it more accurate, I mentioned the theorem number as well. Would be interesting to know what’s in the official editorial.