The "-1" makes little difference when we get up around a million; so essentially we are looking for the largest value of n for which 2^n is less than 1 million.
2^10 = 1024 which is just a bit more than 1000, so 2^20 will be just a bit more than 1 million.
So the largest n for which the series has a sum of less than 1,000,000 is n=19.