Maths & numbers

Polygonal number from side count and index calculator

Evaluate a generalized figurate number from the number of sides and the term index.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Evaluate a generalized figurate number from the number of sides and the term index.

THE FORMULAP(s,n)=((s−2)n²−(s−4)n)/2

A worked example

The fourth pentagonal number is (3×16−4)/2 = 22.

Good to know

Index zero gives zero.

Read the result

Evaluate a generalized figurate number from the number of sides and the term index.

The primary result is labeled “Polygonal number”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

Index zero gives zero.

For a related exercise, try the greatest common divisor.

A few questions, answered

How can I check the default inputs by hand?

The fourth pentagonal number is (3×16−4)/2 = 22.

Which rule does this calculator apply?

P(s,n)=((s−2)n²−(s−4)n)/2

Find your calculator

Start typing to explore the library.