# Highly composite number

This article is about numbers having many divisors. For numbers factorized only to powers of 2, 3, 5 and 7 (also named 7-smooth numbers), see Smooth number.
First four: 1, 2, 4, 6

A highly composite number (HCN) is a positive integer with more divisors than any smaller positive integer has. The term was coined by Ramanujan (1915). However, Jean-Pierre Kahane has suggested that the concept might have been known to Plato, who set 5040 as the ideal number of citizens in a city as 5040 has more divisors than any numbers less than it.[1]

The related concept of largely composite number refers to a positive integer which has at least as many divisors as any smaller positive integer.

## Examples

The initial or smallest 38 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).

Order HCN
n
prime
factorization
prime
exponents
prime
factors
d(n) primorial
factorization
1 1 0 1
2* 2 1 1 2
3 4 2 2 3
4* 6 1,1 2 4
5* 12 2,1 3 6
6 24 3,1 4 8
7 36 2,2 4 9
8 48 4,1 5 10
9* 60 2,1,1 4 12
10* 120 3,1,1 5 16
11 180 2,2,1 5 18
12 240 4,1,1 6 20
13* 360 3,2,1 6 24
14 720 4,2,1 7 30
15 840 3,1,1,1 6 32
16 1260 2,2,1,1 6 36
17 1680 4,1,1,1 7 40
18* 2520 3,2,1,1 7 48
19* 5040 4,2,1,1 8 60
20 7560 3,3,1,1 8 64
21 10080 5,2,1,1 9 72
22 15120 4,3,1,1 9 80
23 20160 6,2,1,1 10 84
24 25200 4,2,2,1 9 90
25 27720 3,2,1,1,1 8 96
26 45360 4,4,1,1 10 100
27 50400 5,2,2,1 10 108
28* 55440 4,2,1,1,1 9 120
29 83160 3,3,1,1,1 9 128
30 110880 5,2,1,1,1 10 144
31 166320 4,3,1,1,1 10 160
32 221760 6,2,1,1,1 11 168
33 277200 4,2,2,1,1 10 180
34 332640 5,3,1,1,1 11 192
35 498960 4,4,1,1,1 11 200
36 554400 5,2,2,1,1 11 216
37 665280 6,3,1,1,1 12 224
38* 720720 4,2,1,1,1,1 10 240

The table below shows all the divisors of one of these numbers.

 The highly composite number: 10080 10080 = (2 × 2 × 2 × 2 × 2)  ×  (3 × 3)  ×  5  ×  7 1×10080 2 × 5040 3 × 3360 4 × 2520 5 × 2016 6 × 1680 7× 1440 8 × 1260 9 × 1120 10 × 1008 12 × 840 14 × 720 15× 672 16 × 630 18 × 560 20 × 504 21 × 480 24 × 420 28× 360 30 × 336 32 × 315 35 × 288 36 × 280 40 × 252 42× 240 45 × 224 48 × 210 56 × 180 60 × 168 63 × 160 70× 144 72 × 140 80 × 126 84 × 120 90 × 112 96 × 105 Note:  Numbers in bold are themselves highly composite numbers. Only the twentieth highly composite number 7560 (= 3 × 2520) is absent.10080 is a so-called 7-smooth number (sequence A002473 in the OEIS).

The 15,000th highly composite number can be found on Achim Flammenkamp's website. It is the product of 230 primes:

where is the sequence of successive prime numbers, and all omitted terms (a22 to a228) are factors with exponent equal to one (i.e. the number is ).[2]

Plot of the number of divisors of integers from 1 to 1000. The first 15 highly composite numbers are in bold.

## 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:

where are prime, and the exponents are positive integers.

Any factor of n must have the same or lesser multiplicity in each prime:

So the number of divisors of n is:

Hence, for n to be a highly composite number,

• the k given prime numbers pi must be precisely the first k prime numbers (2, 3, 5, ...); if not, we could replace one of the given primes by a smaller prime, and thus obtain a smaller number than n with the same number of divisors (for instance 10 = 2 × 5 may be replaced with 6 = 2 × 3; both have four divisors);
• the sequence of exponents must be non-increasing, that is ; otherwise, by exchanging two exponents we would again get a smaller number than n with the same number of divisors (for instance 18 = 21 × 32 may be replaced with 12 = 22 × 31; both have six divisors).

Also, except in two special cases n = 4 and n = 36, the last exponent ck must equal 1. It means that 1, 4, and 36 are the only square highly composite numbers. Saying that the sequence of exponents is non-increasing is equivalent to saying that a highly composite number is a product of primorials.

## Asymptotic growth and density

If Q(x) denotes the number of highly composite numbers less than or equal to x, then there are two constants a and b, both greater than 1, such that

The first part of the inequality was proved by Paul Erdős in 1944 and the second part by Jean-Louis Nicolas in 1988. We have[3]

and

## Related sequences

Highly composite numbers higher than 6 are also abundant numbers. One need only look at the three or four highest divisors of a particular highly composite number to ascertain this fact. It is false that all highly composite numbers are also Harshad numbers in base 10. The first HCN that is not a Harshad number is 245,044,800, which has a digit sum of 27, but 27 does not divide evenly into 245,044,800.

10 of the first 38 highly composite numbers are superior highly composite numbers. The sequence of highly composite numbers (sequence A002182 in the OEIS) is a subset of the sequence of smallest numbers k with exactly n divisors (sequence A005179 in the OEIS).

A positive integer n is a largely composite number if d(n) ≥ d(m) for all mn. The counting function QL(x) of largely composite numbers satisfies

for positive c,d with .[4][5]

Because the prime factorization of a highly composite number uses all of the first k primes, every highly composite number must be a practical number.[6] Many of these numbers are used in traditional systems of measurement, and tend to be used in engineering designs, due to their ease of use in calculations involving fractions.

## Notes

1. Kahane, Jean-Pierre (February 2015), "Bernoulli convolutions and self-similar measures after Erdős: A personal hors d'øeuvre", Notices of the American Mathematical Society, 62 (2): 136–140. Kahane cites Plato's Laws, 771c.
2. Flammenkamp, Achim, Highly Composite Numbers.
3. Sándor et al (2006) p.45
4. Sándor et al (2006) p.46
5. Nicolas, Jean-Louis (1979). "Répartition des nombres largement composés". Acta Arith. (in French). 34: 379–390. Zbl 0368.10032.
6. Srinivasan, A. K. (1948), "Practical numbers" (PDF), Current Science, 17: 179–180, MR 0027799.