Can you find a reference for Ramanujan's "proof"? I looked briefly and can't find one, but I'd be very interested to see what the proof was.
Let a, b be equal integers
a = b
a^2 = ab // multiply by a
a^2 + a^2 - 2ab = ab + a^2 - 2ab // subtract a^2 - 2ab
2(a^2 - ab) = a^2 - ab
2 = 1
From p319, Fermat's Last Theorem by Simon Singh 2(a^2 - ab) = a^2 - ab
On this line, a^2 - ab is 0 (look at line 2). You wind up dividing both sides by 0, thus resulting in the false proof.