Assume toward a contradiction that x is an integer satisfying
2x + 1 = 5x – 4.
Reducing the equation modulo 3 gives
2x + 1 ≡ 2x + 2 mod 3.
Subtracting 2x from both sides leaves 1 ≡ 2 mod 3, which is a contradiction.