A relation is defined on the set of all pairs of integers by the formula where are fixed constants. Find necessary and sufficient conditions on the constants for to be an equivalence relation. (Your answer should be an equation.)

Answer: