Problem

Problem

Solve the equation $(x)^2 = [x]^2 + 2x where, [x][x] and (x)(x) are integers just less than or equal to xx and just greater than or equal to xx, respectively.
Intuitive explanation

The key is recognizing that [x][x] is the floor (greatest integer ≤ xx) and (x)(x) is the ceiling (least integer ≥ xx), which differ only when xx is not an integer. If xx is an integer, both equal xx and the equation becomes trivial; if xx is not an integer, write x=n+fx = n + f where n=[x]n = [x] and 0<f<10 < f < 1, then (x)=n+1(x) = n + 1. Substituting into the equation gives you a constraint on ff that either yields a solution or forces xx to be an integer after all.

Intuitive explanation

The key is recognizing that [x][x] is the floor (greatest integer ≤ xx) and (x)(x) is the ceiling (least integer ≥ xx), which differ only when xx is not an integer. If xx is an integer, both equal xx and the equation becomes trivial; if xx is not an integer, write x=n+fx = n + f where n=[x]n = [x] and 0<f<10 < f < 1, then (x)=n+1(x) = n + 1. Substituting into the equation gives you a constraint on ff that either yields a solution or forces xx to be an integer after all.

Browse the problem library