• recategorized by
755 views
0 0 votes

For any positive integer $\text{N}$, let $\text{p(N)}$ be the probability that a uniformly random number $a \in\{1, \ldots, N\}$ has an odd number of factors (including 1 and the number itself).
Which of the following is true about the function $p: \mathbb{N} \rightarrow \mathbb{R}$ ?

  1. $\lim _{N \rightarrow \infty} p(N)=\frac{1}{2}$.
  2. $p(N)=\Theta\left(\frac{\log N}{N}\right)$.
  3. $p(N)=\Theta\left(\frac{1}{N}\right)$.
  4. $p(N)=\Theta\left(\frac{1}{\sqrt{N}}\right)$.
  5. $p(N)=\Theta\left(\frac{1}{\log N}\right)$.

     

1 Answer

1 1 vote
We can prime factorize any number $n$ as

$n = p^a\cdot q^b\cdot r^c ...$

The number of factors of $n$ can be defined as the number of ways to select a subset these prime factors ($x^3$ as prime factor means we have total 4 ways of selecting $x$ in our factor as either $x^0, x^1, x^2, x^3$) as each subset will represent a different factor, so

Number of factors of  $n =(a + 1)(b+1)(c+1)...$

For number of factors to be odd, all of $a, b, c, ...$ have to be even, thus the number has to be a perfect square.

From $1...N$ we have approximately $\sqrt{N}$ perfect squares, so the probability that a uniformly random number $a \in \{1, 2,... ,N\}$ is $\approx\dfrac{\sqrt{N}}{N}$

$\approx \dfrac{1}{\sqrt{N}}$
• edited by
Answer:
Position:
Show:

Related questions

0 0 votes
2 2 answers
743
743 views
admin asked Jan 12, 2024
743 views
Let $z_{1}, z_{2}, z_{3}, \ldots, z_{2023}$ be a permutation of the numbers $1,2,3, \ldots, 2023$. Which of the following is true about the product $\prod_{i=1}^{2023}\le...
1 1 vote
1 answers 1 answer
956
956 views
admin asked Jan 13, 2024
956 views
In the following pseudocode, assume that for any pair of integers $x \leq y$, the function random ( $\mathrm{x}, \mathrm{y})$ produces an integer uniformly chosen from th...
1 1 vote
1 1 answer
612
612 views
admin asked Jan 13, 2024
612 views
Arun has a non-empty subset $\text{S}$ of the numbers $\{1,2,3, \ldots, 1000\}$. Bela wants to find any number $\text{x}$ in Arun's set $\text{S}$.To do this, Arun and Be...
0 0 votes
2 2 answers
958
958 views
admin asked Jan 12, 2024
958 views
Let $\sigma$ be a uniform random permutation of $\{1, \ldots, 100\}$. What is the probability that $\sigma(1)<\sigma(2)<\sigma(3)$ (i.e., what is the probability that the...