Question 957674
It needs to satisfy both conditions simultaneously so,
{{{-3<d<2}}}
.
.
.
{{{drawing(300,200,-5,5,-2,2,line(-10,0,10,0),green(line(-3,0,2,0)),
circle(-5,0,0.1),locate(-4.5,0.5,-4),
circle(-4,0,0.1),locate(-3.5,0.5,-3),
circle(-3,0,0.1),locate(-2.5,0.5,-2),
locate(-1.5,0.5,-1),
locate(-0.25,0.5,0),
locate(0.75,0.5,1),
locate(2,0.5,2),
locate(3,0.5,3),
locate(4,0.5,4),
circle(2,0,0.1),
circle(3,0,0.1),
circle(4,0,0.1),
circle(5,0,0.1))}}}