$k$ must be one of the 100 consecutive integers.
I know the answers are $50$ and $26$.
But I got stuck into getting these numbers.
Here is what I tried:
$S_{100} = \frac{(n+n+99)\times100}{2} \implies S_{100} - k + k² = 7500 \implies \frac{(n+n+99)\times100}{2} + k(k-1) = 7500 \implies k(k-1) = 7500 - 50(2n+99)\implies k(k-1)= 50(51-2n) $.
It's easy to see that $n = 1 \implies k = 50$ is an answer. But how can I discover that $n = 19 \implies k = 26$?
$$\sum_{i=n}^{n+99} i = \sum_{i=1}^{n+99} i - \sum_{i=1}^{n-1} i = \dbinom{n+100}{2} - \dbinom{n}{2} = \dfrac{(n+100)(n+99)}{2} - \dfrac{n(n-1)}{2} = \dfrac{n^2+199n+9900}{2} - \dfrac{n^2-n}{2} = \dfrac{200n+9900}{2}$$
Then you have:
$$\dfrac{200n+9900}{2}+k^2-k = 7500$$
Multiplying out:
$$k^2-k+100n-2550 = 0$$
$$k = \dfrac{1\pm \sqrt{10201-400n}}{2}$$
So, $10201-400n$ must be an odd perfect square.
You can add the numbers $1$ through $100$ and $k=50$.
Or you can have the numbers $19$ through $118$ and $k=26$