Find the sum of the squares of the first n positive odd numbers, starting at 1. Enter the number of terms, not the largest odd number. For example, n = 5 means adding 1² + 3² + 5² + 7² + 9².
For n = 5, the odd numbers are 1, 3, 5, 7 and 9. Their squares add to 1 + 9 + 25 + 49 + 81 = 165.
Using the formula gives the same result: 5 × 9 × 11 ÷ 3 = 165.
Expand each term: (2k − 1)² = 4k² − 4k + 1. Summing from k = 1 to n gives 4Σk² − 4Σk + n.
Substitute Σk² = n(n + 1)(2n + 1)/6 and Σk = n(n + 1)/2. Simplifying gives n(4n² − 1)/3, which factors as n(2n − 1)(2n + 1)/3.
| Number of terms n | Largest odd number | Sum |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 3 | 10 |
| 3 | 5 | 35 |
| 4 | 7 | 84 |
| 5 | 9 | 165 |
| 10 | 19 | 1330 |
| 100 | 199 | 133330 |
Use a whole number from 1 to 100,000. Fractions and negative values do not represent a valid number of terms. The upper limit keeps the formula’s integer intermediate values within the exact integer range of standard double-precision arithmetic.
The empty sum for n = 0 is mathematically 0, but this calculator accepts positive counts only. An unavailable result indicates a calculation error; it must not be interpreted as a sum of zero.
Is this the same as squaring the sum of the odd numbers?
No. This calculator squares each odd number before adding. For n = 3, the result is 1² + 3² + 5² = 35. Squaring their sum instead gives (1 + 3 + 5)² = 81.
How do I calculate the sum up to a particular odd number?
If the largest positive odd number is m, enter n = (m + 1)/2. For example, to sum odd squares from 1² through 19², enter n = 10.
Can I start at an odd number greater than 1?
Use two calculations and subtract their results. For positive odd endpoints a and b with 3 ≤ a ≤ b, calculate S((b + 1)/2) − S((a − 1)/2). For example, 5² + 7² + 9² = S(5) − S(2) = 165 − 10 = 155. Both term counts must fit the calculator’s input range.

