in Others edited by
145 views
0 votes
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)$.

     

in Others edited by
by
145 views

1 Answer

0 votes
0 votes
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:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true