--- title: "Highly composite number" chunk: 1/2 source: "https://en.wikipedia.org/wiki/Highly_composite_number" category: "reference" tags: "science, encyclopedia" date_saved: "2026-05-05T08:15:00.548879+00:00" instance: "kb-cron" --- A highly composite number is a positive integer that has more divisors than all smaller positive integers. If d(n) denotes the number of divisors of a positive integer n, then a positive integer N is highly composite if d(N) > d(n) for all n < N. For example, 6 is highly composite because d(6) = 4, and for n = 1,2,3,4,5, you get d(n) = 1,2,2,3,2, respectively, which are all less than 4. A related concept is that of a largely composite number, a positive integer that has at least as many divisors as all smaller positive integers. The name can be somewhat misleading, as the first two highly composite numbers (1 and 2) are not actually composite numbers; however, all further terms are. Ramanujan wrote a paper on highly composite numbers in 1915. The mathematician Jean-Pierre Kahane suggested that Plato must have known about highly composite numbers as he deliberately chose such a number, 5040 (= 7!), as the ideal number of citizens in a city. Furthermore, Vardoulakis and Pugh's paper delves into a similar inquiry concerning the number 5040. == Examples == The first 41 highly composite numbers are listed in the table below (sequence A002182 in the OEIS). The number of divisors is given in the column labeled d(n). Asterisks indicate superior highly composite numbers. The divisors of the first 20 highly composite numbers are shown below. The table below shows all 72 divisors of 10080 by writing it as a product of two numbers in 36 different ways. The 15,000-th highly composite number is the product of 230 primes: a 0 14 a 1 9 a 2 6 a 3 4 a 4 4 a 5 3 a 6 3 a 7 3 a 8 2 a 9 2 a 10 2 a 11 2 a 12 2 a 13 2 a 14 2 a 15 2 a 16 2 a 17 2 a 18 2 a 19 a 20 a 21 ⋯ a 229 , {\displaystyle a_{0}^{14}a_{1}^{9}a_{2}^{6}a_{3}^{4}a_{4}^{4}a_{5}^{3}a_{6}^{3}a_{7}^{3}a_{8}^{2}a_{9}^{2}a_{10}^{2}a_{11}^{2}a_{12}^{2}a_{13}^{2}a_{14}^{2}a_{15}^{2}a_{16}^{2}a_{17}^{2}a_{18}^{2}a_{19}a_{20}a_{21}\cdots a_{229},} where a n {\displaystyle a_{n}} is the n {\displaystyle n} th successive prime number, and all omitted terms (a22 to a228) are factors with exponent equal to one (i.e. the number is 2 14 × 3 9 × 5 6 × ⋯ × 1451 {\displaystyle 2^{14}\times 3^{9}\times 5^{6}\times \cdots \times 1451} ). More concisely, it is the product of seven distinct primorials: b 0 5 b 1 3 b 2 2 b 4 b 7 b 18 b 229 , {\displaystyle b_{0}^{5}b_{1}^{3}b_{2}^{2}b_{4}b_{7}b_{18}b_{229},} where b n {\displaystyle b_{n}} is the primorial a 0 a 1 ⋯ a n {\displaystyle a_{0}a_{1}\cdots a_{n}} . == Prime factorization == Roughly speaking, for a number to be highly composite it has to have prime factors as small as possible, but not too many of the same. By the fundamental theorem of arithmetic, every positive integer n has a unique prime factorization: n = p 1 c 1 × p 2 c 2 × ⋯ × p k c k {\displaystyle n=p_{1}^{c_{1}}\times p_{2}^{c_{2}}\times \cdots \times p_{k}^{c_{k}}} where p 1 < p 2 < ⋯ < p k {\displaystyle p_{1}