This appears to work for all values of i

Doing stress tests to check