Use Binet's formula, and the range of the numbers, if I understand you correctly.

Let's say your range is from "position" 2 to 5.

You would use a for loop that starts at 2, and go from there.
...