Pranav-Arora said:
Is there any good link to study how to find the modular inverse?
Do you have any good book suggestions from where i can study modular arithmetic?
With regard to number theory, I'm almost completely self-taught. It's one of those things that school doesn't do justice to, which is ironic, since whole numbers are the first mathematical concepts to be taught to schoolchildren. The problem is that schools are rushing to introduce rational numbers, then real numbers, etc. etc. The other problem is that number theory can get quite abstract and difficult to understand even a little way in.
I've read at least one book on Number Theory, but I can tell you that most of them (including the one(s) that I've read) are major drags. The format of proposition/lemma followed by proofs that make you jump all over the book, or even outside the book to look up other stuff - is just not conducive to sustaining the interest of a keen, but otherwise busy, amateur.
So I recommend looking up this stuff on the web. You've already got a reasonably good resource in Wiki. Wolfram Mathworld is an even better, albeit more technical, resource. There are plenty of other resources, like online lecture notes, etc.
Just to correct a small misconception you may have, a \equiv b \pmod n does not necessarily mean that b is the remainder of a when a is divided by n. For starters, b may be greater than a, and a \equiv b \pmod n and b \equiv a \pmod n are equally valid ways of writing it.
What that statement says is that, to get from a to b (or vice versa), you need to add or subtract an integer multiple of n. It's that simple. You can also express the relationship as a = kn + b, where k \in \mathbb{Z}. When you start doing modular arithmetic, you'll probably find yourself constantly going back to this "simplistic" notation to convince yourself of something - nothing wrong with that. When you get used to writing mod this and mod that, you won't need to go back to that simple algebraic statement anymore, or at least, less frequently.
Remember that the remainder is defined as a non-negative residue that's strictly smaller than the divisor. So b is the remainder iff (if and only if) b is the unique integer such that 0 \leq b < n and a \equiv b \pmod n. Get that part? The modulo equivalence is actually a whole lot more powerful than just finding remainders, and that's why it can handle negative numbers, and numbers greater than the divisor, etc.
The modular multiplicative inverse is a tricky concept, and you might need to get familiar with all this stuff before you tackle it. Basically, the modular inverse of a (mod n) is denoted by a^ {-1} \pmod n and it's the smallest positive integer x strictly less than n such that ax \equiv 1 \pmod n. See the parallel to the normal multiplicative inverse (reciprocal) there? The modular inverse exists iff gcd(a,n) = 1, which is a condition called coprimality or relative primality between a and n.
I hope you see that there's a lot of ground to cover here, which is why I recommended that you start by looking this stuff online to cover the basics.
