+0  
 
+1
29
4
avatar+438 

what is the least 5 digit positive number that has exactly 9 positive divisors?

 

please help!!!!!!!:D

 May 23, 2020
 #1
avatar
-1

I wrote a computer program

 

for (n = 10000, n <= 99999, n = n + 1)

  a = 0

  for (i = 1, i <= n, i = i + 1) (if n % i == 0) (a = a + 1)

  if (a == 9) (write(n);)

)

 

The frist few outputs are 14161, 16641, 20164, ..., so the answer is 14161.

 
 May 23, 2020
 #2
avatar+438 
0

thanks guest! :)

 
lokiisnotdead  May 23, 2020
 #3
avatar
0

You must have been in a rush, because your code was not bug-free!!

 

The smallest 5-digit integer with 9 divisors is:

 

11236 = (1, 2, 4, 53, 106, 212, 2809, 5618, 11236) = 9 (divisors)

 
Guest May 23, 2020
 #4
avatar+438 
0

oh ok.. thanks guest! :)

 
lokiisnotdead  May 23, 2020

3 Online Users