a = (n - 1) / n

b = 1/n

n = 2 (slider from 1 to 10, step 1)
a = Segment((n, 0.0), (n, (n - 1.0) / n))
b = Segment((n + 0.1, 0.0), (n + 0.1, 1.0 / n))