One-variable linear equations with integers