Комментарии

We can only use this approach if we have prime modulo p and want to calculate inverse in range [1, p).