The Minimal number with 2018 Divisors

48 is the smallest number having 10 divisors: 1, 2, 3, 4, 6, 8, 12, 16, 24, and 48.

Find the smallest positive integer n n with 2018 divisors.

Give your answer as n m o d 2018 n \bmod 2018 .


The answer is 1012.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Chew-Seong Cheong
Mar 26, 2018

Relevant wiki: Euler's Theorem

For a positive integer n = k = 1 m p k q k \displaystyle n = \prod_{k=1}^m p_k^{q_k} , where p k p_k are primes and q k q_k are the respective powers, then the number of factors or divisors are given by σ 0 ( n ) = k = 1 m ( q k + 1 ) \displaystyle \sigma_0 (n) = \prod_{k=1}^m (q_k+1) . Then for a number n n which has 2018 divisors, we have two cases:

σ 0 ( n ) = 2018 = { 2017 + 1 2 × 1009 Since 2018 has only two prime factors. \sigma_0 (n) = 2018 = \begin{cases} 2017 + 1 \\ 2 \times 1009 & \small \color{#3D99F6} \text{Since 2018 has only two prime factors.} \end{cases}

Case 1: σ 0 ( n ) = 2018 = 2017 + 1 = q 1 + 1 n = p 1 2017 \sigma_0 (n) = 2018 = 2017+1 = q_1 + 1 \implies n = p_1^{2017} . The smallest n n in this case is therefore, when p 1 = 2 p_1 = 2 and n = 2 2017 n = 2^{2017}

Case 2: σ 0 ( n ) = 2018 = 2 × 1009 = ( q 1 + 1 ) ( q 2 + 1 ) = ( 1 + 1 ) ( 1008 + 1 ) n = p 1 1 × p 2 1008 \sigma_0 (n) = 2018 = 2 \times 1009 = (q_1 + 1)(q_2 + 1) = (1+1)(1008+1) \implies n = p_1^1 \times p_2^{1008} . The smallest n n in this case is therefore when p 1 = 3 p_1 = 3 and p 2 = 2 p_2 = 2 , that is n = 3 × 2 1008 n=3\times 2^{1008} .

Therefore the smallest n = 3 × 2 1008 n = 3 \times 2^{1008} and we need to find 3 × 2 1008 m o d 2018 3\times 2^{1008} \bmod 2018 . Since gcd ( 2 , 2018 ) 1 \gcd(2,2018) \ne 1 , we have to consider the prime factors of 2018 that is 2 and 1009 separately using the Chinese remainder theorem .

Consider prime factor 2: n = 3 × 2 1008 0 (mod 2) n = 3\times 2^{1008} \equiv 0 \text{ (mod 2)} .

Consider prime factor 1009:

n 3 × 2 1008 m o d ϕ ( 1009 ) (mod 1009) Since gcd ( 2 , 1009 ) = 1 , Euler’s theorem applies. 3 × 2 1008 m o d 1008 (mod 1009) Euler’s totient function ϕ ( 1009 ) = 1008 3 × 2 0 3 (mod 1009) n 1009 r + 3 where r N 1009 r + 3 0 (mod 2) Since n 0 (mod 2) r 1 \begin{aligned} n & \equiv 3\times 2^{\color{#3D99F6} 1008 \bmod \phi (1009)} \text{ (mod 1009)} & \small \color{#3D99F6} \text{Since }\gcd (2,1009) = 1 \text{, Euler's theorem applies.} \\ & \equiv 3\times 2^{\color{#3D99F6} 1008 \bmod 1008} \text{ (mod 1009)} & \small \color{#3D99F6} \text{Euler's totient function }\phi (1009) = 1008 \\ & \equiv 3\times 2^{\color{#3D99F6}0} \equiv 3 \text{ (mod 1009)} \\ \implies n & \equiv 1009 r + 3 & \small \color{#3D99F6} \text{where } r \in \mathbb N \\ 1009 r + 3 & \equiv 0 \text{ (mod 2)} & \small \color{#3D99F6} \text{Since } n \equiv 0 \text{ (mod 2)} \\ \implies r & \equiv 1 \end{aligned}

Therefore, n 1009 + 3 1012 (mod 2018) n \equiv 1009+3 \equiv \boxed{1012} \text{ (mod 2018)} .

You should also consider numbers of the form p 2017 p^{2017} , which also have 2018 2018 divisors. Obviously, 2 2017 > 3 × 2 1008 2^{2017} > 3\times2^{1008} , so the choice is not difficult...

Mark Hennings - 3 years, 1 month ago

Log in to reply

Yes, I missed that.

Chew-Seong Cheong - 3 years, 1 month ago
Giorgos K.
Mar 26, 2018

A number n n is said to be o r d i n a r y ordinary if the smallest number with exactly n n divisors is p 1 q 1 1 p a q a 1 p_{1}^{q_{1}-1} ··· p_{a}^{q_{a}-1} where q 1 q a q_{1} ··· q_{a} is the prime factorization of n n and q_{1} \geq ··· \geq q_{a} (and where p k p_{k} denotes the k k th prime)

All s q u a r e f r e e square-free numbers are o r d i n a r y ordinary . Please read this paper

2018 2018 is a s q u a r e f r e e square-free number. Thus, 2018 2018 is o r d i n a r y ordinary

The prime factorization of 2018 2018 is 2 × 1009 2 \times 1009
So, the number n n we are searching is 2 1008 × 3 1 2^{1008} \times 3^1

8229186103190533024883904376780813905111588953898498105168002982684296072639509420747763549304544190419927088006808167617437275794116971854836155577368505449421748051065009396803385296687901036962268811893539692787390930893362253485439137750587184318390678894863264384763210110709215529090973953077280768

and... n n m o d 2018 mod 2018 = = 1012 1012

Here is a program in M a t h e m a t i c a Mathematica that works only with o r d i n a r y ordinary numbers

n = 2018; s = Reverse@Flatten[Table @@@ FactorInteger[n]] - 1; Product[Prime@i^s[[i]], {i, Length@s}]

For example if you input n = 80 n=80 to this program it outputs 18480 18480 which is N O T NOT the smallest number with 80 80 divisors.
The smallest number is 15120 15120 and it gave the wrong anwer because 80 80 is e x t r a o r d i n a r y extraordinary (not o r d i n a r y ordinary ).

Here is also a video introduction to Highly Composite Numbers by Numberphile

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...