Here is one proof. I don't know if this can be attributed to Ramanujan.
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