Calculators

Centered Square Number Calculator

Calculate exact centered square numbers from a ring count, with the next term and digit count, privately in your browser.

Count dots in a centered square with n complete rings around one central dot. Enter 0 or a positive whole number of up to 100 digits. Calculations stay in your browser.

Enter a ring count to calculate a centered square number.

Count dots in concentric square rings.

Start with one central dot and add n complete square rings. Ring k adds 4k dots, so C(n) = 1 + 4(1 + 2 + … + n) = 2n(n + 1) + 1 = n² + (n + 1)². For n = 0, 1, 2, 3, 4 the counts are 1, 5, 13, 25, 41. Three rings contain 1 + 4 + 8 + 12 = 25 dots. This calculator uses zero-based ring counts: n = 0 is the central dot alone; references may instead label this term 1. Centered square numbers differ from ordinary square numbers n². Enter a non-negative integer of up to 100 digits. Leading zeros and surrounding whitespace are accepted; signs, decimals, separators and scientific notation are rejected. Browser BigInt arithmetic preserves every digit. Results include the next term and decimal digit count. No input is uploaded or stored.

Frequently Asked Questions

Everything you need to know about this tool, how it works, and privacy.

What is the formula?

With n rings around one central dot, C(n) = 2n(n + 1) + 1 = n² + (n + 1)². Ring k adds 4k dots.

What does zero mean?

Zero rings means the central dot alone, so C(0) = 1. The next counts are 5, 13, 25 and 41. Some references label the center as term 1.

Are these ordinary square numbers?

No. Ordinary square numbers use n². Centered square numbers are sums of consecutive squares and count rings around a central dot.

How large can the input be?

Enter a non-negative integer of up to 100 digits. BigInt arithmetic preserves every result digit. Calculations stay in your browser.