We need to find the largest element in S={x+λ:x is an integer solution of E} where E:∣x∣2−2∣x∣+∣λ−3∣=0.
We start by letting u=∣x∣≥0, which transforms the equation into:
u2−2u+∣λ−3∣=0
This quadratic in u yields u=22±4−4∣λ−3∣=1±1−∣λ−3∣.
For real solutions in u we require ∣λ−3∣≤1, i.e., 2≤λ≤4.
We also note that u≥0, and because 1−∣λ−3∣≤1, both expressions 1±1−∣λ−3∣ are non-negative.
Since x must be an integer, u=∣x∣ must be a non-negative integer, so we need u=1±1−∣λ−3∣ to be an integer.
Introducing k=1−∣λ−3∣ gives ∣λ−3∣=1−k2 and hence u=1+k or u=1−k.
For u to be an integer, k must also be an integer satisfying 0≤k≤1, which leaves k=0 or k=1.
Case 1: If k=0 then ∣λ−3∣=1, yielding λ=2 or λ=4 and u=1 so that x=±1.
For λ=4 this gives x+λ∈{−1+4,1+4}={3,5}, and for λ=2 it gives x+λ∈{−1+2,1+2}={1,3}.
Case 2: If k=1 then ∣λ−3∣=0 so λ=3 and u=0 or u=2, giving x∈{0,±2}.
This leads to x+λ∈{0+3,2+3,−2+3}={3,5,1} for λ=3.
Across all valid values of λ, the largest element in S is 5, which is the required answer.