MathQuarryCalculators

Numbers / 28

28 — the second perfect number

28 is composite: factorization 2^2 × 7. That gives 28 exactly 6 divisors: 1, 2, 4, 7, 14, 28. 28's proper divisors add up to 28, matching 28 exactly, a rare perfect number. 28 is also the 7th triangular number, the sum of 1 through 7. 28 has a digit sum of 10; for 28, the digital root works out to 1. 28: 2, 4, 7 all divide 28 evenly, out of 2-12. 28 is 11100 in binary and 1C in hex; as a Roman numeral it's XXVIII.

Factors
1, 2, 4, 7, 14, 28
Number of factors
6
Prime?
No
Prime factorization
2^2 x 7
Even or odd
Even
Square
784
Cube
21952
Binary
11100
Hexadecimal
1C
Roman numeral
XXVIII
Perfect square?
No
Perfect cube?
No
Perfect number?
Yes
Triangular number?
Yes
Fibonacci number?
No

Twenty-eight is the second perfect number — its proper divisors (1, 2, 4, 7, 14) sum to exactly 28 (1+2+4+7+14=28), the same defining property that makes 6 the smallest perfect number, just one step further along the sequence. Using Euclid's ancient formula for generating perfect numbers (2^(p−1)×(2^p−1), where 2^p−1 must itself be prime), 28 comes from p=3: 2³−1=7, which is prime, giving 2²×7=4×7=28.

Twenty-eight has a second, entirely independent claim to distinctiveness: it's the number of days in the lunar cycle as historically approximated by many ancient calendar systems, and it's the length of February in a common (non-leap) year — the shortest month, itself a product of a long, somewhat improvised history of calendar reform stretching back through the Roman calendar. The rough alignment between the lunar cycle (about 29.5 days, actually, though frequently approximated to 28 in simplified traditional reckonings) and 28's mathematical perfection is very likely coincidental rather than causally connected — there's no evidence ancient calendar-makers chose their lunar approximations because of the number's perfect-number status, which wasn't formally identified and named until later Greek mathematics. It's a case worth flagging honestly: two genuinely interesting facts about the same number that happen not to be related to each other, despite an understandable temptation to connect them.

Twenty-eight is also a triangular number — T(7), the sum of every whole number from 1 to 7 (1+2+3+4+5+6+7=28) — meaning it can be arranged as a triangle of dots seven rows deep. This gives 28 a notable double status shared by only a small handful of numbers: both perfect and triangular simultaneously, a genuine overlap between two of the structural number classifications tracked on this site (6 shares this same double status, being both the first perfect number and the third triangular number).

The gap between 28 (the second perfect number) and 6 (the first) is small, but the sequence widens dramatically after this point — the third perfect number, 496, is already seventeen times larger than 28, and the growth only accelerates from there, since each subsequent perfect number depends on finding an increasingly rare Mersenne prime. This makes 28 and 6 a genuinely useful pair for understanding perfect numbers concretely by hand — both small enough to verify the defining sum-of-divisors property with simple arithmetic, unlike every perfect number that follows them.

Twenty-eight also appears, entirely coincidentally, as the number of letters in some alphabets (classical Arabic script, for instance, uses 28 letters), and it's a recurring "everyday round number" in contexts ranging from standard hospital observation periods to product packaging counts — none of which trace back to its mathematical properties, but which do illustrate how a mid-sized number with no particular cultural baggage can end up adopted as a practical, convenient standard across a range of unrelated fields simply because it's a manageable, memorable size.

Twenty-eight's perfect-number status also makes it a useful teaching example precisely because of its size: large enough to feel like a genuine discovery when a student verifies the sum-of-divisors property by hand for the first time (rather than the almost-trivial case of 6), but still small enough that the full divisor list (1, 2, 4, 7, 14) is short enough to write out and sum without a calculator.

The number's dual status as perfect and triangular also invites a natural extension question worth sitting with: are 6 and 28 part of a larger, predictable pattern of perfect-triangular overlaps, or a coincidence limited to just these two small cases? The honest answer is that every even perfect number (per Euclid and Euler's combined proof) is automatically triangular as a direct mathematical consequence of the formula that generates it — so the overlap isn't a coincidence at all, but a guaranteed structural feature of every even perfect number, 6 and 28 included, all the way up through the far larger perfect numbers that follow — a genuinely satisfying piece of structure once you see it, rather than an isolated numerical coincidence limited to the two smallest cases. The next even perfect number after 28, 496, is triangular too (T(31)=496), continuing the exact same guaranteed pattern, and it holds for every even perfect number discovered since, no matter how astronomically large the later ones get.