Re: smallest positive integer that has exactly k divisors
- From: mukesh tiwari <mukeshtiwari.iiitm@xxxxxxxxx>
- Date: Wed, 24 Oct 2007 06:12:45 -0000
Gerry Myerson wrote:
In article <1193203237.965221.68120@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
mukesh tiwari <mukeshtiwari.iiitm@xxxxxxxxx> wrote:
Hello everybody . i have to find the smallest positive integer that
has exactly k divisors. for example if k=6 then 12 is the minimum
number which have 6 divisors.One brute force approach i came across
is find the prime factorization and calculate the divisors until
divisors are equal to the k but this one is taking to much time even
for 2000 factors .
Do you know the formula for the number of divisors of n,
given the prime factorization of n?
Can you set that formula equal to k and thus find which kinds
of prime factorization will lead to a number with exactly k divisors?
For example, do you know that for a number to have exactly 7 divisors,
the number must be the 6th power of a prime?
--
Gerry Myerson (gerry@xxxxxxxxxxxxxxx) (i -> u for email)
yes i know the formula for number of divisprs of n.
n=p1^e1*p2^2*........pm^em
then number of divisors will be (e1+1)*(e2+1)......(em+1).
quote "Can you set that formula equal to k" .
but i have to know in advance that how many primes will sufficient
for given problem statement.
Plz explain bit more your method . thnkx for reply.
.
- References:
- smallest positive integer that has exactly k divisors
- From: mukesh tiwari
- Re: smallest positive integer that has exactly k divisors
- From: Gerry Myerson
- smallest positive integer that has exactly k divisors
- Prev by Date: Re: smallest positive integer that has exactly k divisors
- Next by Date: MATLAB SVD
- Previous by thread: Re: smallest positive integer that has exactly k divisors
- Next by thread: Re: smallest positive integer that has exactly k divisors
- Index(es):
Relevant Pages
|
Loading