https://numbas.mathcentre.ac.uk/question/36422/find-position-of-a-number-in-a-sequence-of-intervals/embed/