A pyramidal number, pn, is the number of objects in a pyramid with a square base and n layers, where the k layer of the pyramid is a square with s=k objects in it. So, by definition,
ตัวเลข pyramidal, pn มีจำนวนของออปเจ็กต์ในปิรามิดเป็นฐาน และ n เหลี่ยมชั้นด้วย ที่ชั้น k ของปิรามิดเป็นสี่เหลี่ยม มี s = k วัตถุในการ ดังนั้น โดยคำจำกัดความ