Consider the set $\text{S} = \{1, 2, 3, \dots, 1000\}.$ How many arithmetic progressions can be formed from the elements of $\text{S}$ that start with $1$ and with $1000$ and have at least $3$ elements?