How to Use
Enter n or test a value:
- P(n): nth pentagonal
- Test: Is N pentagonal?
- Generalized: Both signs
Euler's Theorem
Π_{n≥1}(1−x^n) = 1 − x − x² + x⁵ + x⁷ − x¹² − x¹⁵ + ... The exponents are generalized pentagonal numbers! This gives the fastest recurrence for computing p(n): p(n) = Σ (−1)^{k+1} p(n−P(k)).
Geometric Meaning
Arrange dots in nested pentagons: 1, 5, 12, 22... Each layer adds a larger pentagon ring. The formula n(3n−1)/2 counts dots. Unlike triangular/square numbers, pentagonal numbers have deep connections to partition theory.
Step-by-Step Instructions
- 1Enter n.
- 2Compute P(n).
- 3Generate sequence.
- 4Test membership.
- 5See Euler connection.