I don't know the equation, but, the sum of odd numbers 1 to n is equal to the square of however many odd numbers your adding together. The sum of the odd numbers from 1 to 19, the first 10 odd numbers, is 100. The sum of the first 30 is 900, the first 1000 odd numbers add up to 1,000,000.