Calculators

Octagonal Number Calculator

Calculate the nth octagonal number exactly with a formula breakdown, privately in your browser.

Find the nth octagonal number with exact integer arithmetic. Your data stays in your browser.

Enter a non-negative whole number of up to 100 digits. Use digits only, without commas or exponent notation. Zero returns zero.

Your octagonal number will appear here.

Count dots in an octagonal arrangement.

The nth ordinary octagonal number is O(n) = n × (3n − 2). The first five positive values are 1, 8, 21, 40, and 65. Successive layers add 1, 7, 13, 19, and so on, increasing by 6 each time. For n = 10, O(10) = 10 × 28 = 280. We include O(0) = 0 for an empty arrangement. Enter a non-negative index of up to 100 digits without separators, signs, decimals or scientific notation. Leading zeros are accepted. Browser BigInt arithmetic keeps the entire result exact. This tool calculates ordinary octagonal numbers from their indices; it does not calculate centered or generalized octagonal numbers or test sequence membership. All processing stays in your browser.

Frequently Asked Questions

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

What is an octagonal number?

An ordinary octagonal number counts dots arranged in an octagonal pattern. The sequence starts 1, 8, 21, 40, 65. Successive differences are 7, 13, 19, 25, increasing by 6.

How is the nth octagonal number calculated?

Use O(n) = n × (3n − 2). For n = 10, this gives 10 × 28 = 280.

Are these centered octagonal numbers?

No. Ordinary octagonal numbers use n × (3n − 2). Centered octagonal numbers follow a different formula, and generalized octagonal numbers also allow negative indices. This calculator uses ordinary non-negative indices only.

Can I enter zero or decimal indices?

Zero returns zero for an empty arrangement. Negative and fractional indices are rejected. Enter digits only without signs, commas or exponent notation; leading zeros are accepted.

Are large results rounded or uploaded?

No. BigInt arithmetic produces exact integers for indices up to 100 digits. Calculations stay in your browser, and you can copy the full result.