Faster Looping with Maths