so, let me see if this is right...
In p-adic numbers,

?
And

since that is the multiplicative inverse of

in mod 5?
Indeed so, both.
As for Edinburgh... It's not that we have bad facilities or bad research or whatever... But look at any university rankings list and you'll see Edinburgh will have one of the lowest student satisfaction ratings in probably the top 100.
I can't speak for the rest of the courses (although I know many friends were not happy with the teaching, friends who graduated with 2:1s and firsts) but I know personally the quality of the lectures and the general organization/management of courses in the maths dept are way below par.
With about 90% of my course here's how it works...
Lecture, write 8-12 sides of A4 paper.
Half an hour later, full notes for the course appear on the website...
...
What's the point in the lectures?
You're constantly writing so it's very difficult to understand things as you are immediately writing down something new (even the uni says, just get it down, understand it later).
Just an example but in general it's not Edinburghs fault. I firmly believe that maths lectures are borderline pointless. Someone who excels in their field (i.e the lecturer) should not be used to simply regurgitate notes to students.