3
$\begingroup$

x equals any whole number.

y equals the number of prime factors of x.

You plot those points, then find a line of best fit.

What would the equation for that line be?

Also; why?

$x = 48$

$y = 5$

Because $48 = 2 \cdot 2 \cdot 2 \cdot 2 \cdot 3$

  • 0
    A vertical line at x = that whole number. More seriously, can you give some clarification as to what these "points" are and how you find them?2011-09-06
  • 1
    @El'endia I think the OP means plotting the points $(x,y)$ for all $x$, where $y$ is the number of prime divisors of $x$, and drawing a best fit line through all of them.2011-09-06
  • 0
    Sure. Editing question now.2011-09-06
  • 0
    $y = x$ would be mine2011-09-06
  • 0
    It sounds like you are looking for an asymptotic value of $\Omega(n)$. Here is a place to start: http://en.wikipedia.org/wiki/Average_order_of_an_arithmetic_function2011-09-06
  • 2
    Since there are infinitely many points, and the true relation is manifestly not linear, what does a "best fit" even mean here?2011-09-06
  • 0
    Do you really want a line? You'll always find a prime between n and 2n if n>1, so whatever line you pick doesn't fit infinitely many points all that well. A quadratic equation seems at least a little better here. Cross-post with Henning.2011-09-06
  • 1
    @Peter: It should be pointed out that $48 = 2^4 \cdot 3$, _not_ $2^5 \cdot 3$.2011-09-06
  • 0
    @DJC Thanks for pointing that out2011-09-06
  • 0
    @Henning Makholm I do see the problem now with finding a line of best fit. It would have to be arbitrary. I guess this is more of a soft question.2011-09-06
  • 0
    If we do insist on a line, $y=0$ seems like the best candidate :)2011-09-07

1 Answers 1

4

It's easiest to think in terms of the partial sums of this function (number of prime factors of 1, plus number of prime factors of 2, plus ..., plus number of prime factors of n). Call this function $f(n)$. What does the best curve for $f(n)$ look like? Well, $f(n) \approx n/2 + n/3 + n/4 + n/5 + n/7 + n/8 + n/9 + \cdots + n/p^k$ for $p$ prime, $p^k < n$. Why? Because approximately $n/2$ of the numbers less than $n$ are divisible by 2 once, $n/3$ are divisible by 3 once, $n/4$ are divisible by 2 twice, etc.

So what does that sum look like? Well, $1/p + 1/p^2 +\cdots + 1/p^k = \frac{p^k - 1}{p^k (p-1)}$, which is approximately $1/(p-1)$. So

$f(n) \approx \sum_{p\leq n} \frac{1}{p-1}$

where the sum is over primes.

Your function is approximately the derivative of $f(n)$, which can be approximated by $1/(n-1)$ times the probability that $n$ is prime, or roughly $1/n \ln n$.

  • 0
    Yeah, I realized that after I posted, and have modified my answer accordingly.2011-09-06
  • 1
    Your answer is puzzling. Surely the number of prime factors cannot be smaller than 1, right? (Also, the sum $\sum_{p < x} 1/p$ is like $\log \log x$.)2011-09-07
  • 0
    Yes, it should be $f(n) \approx n \sum_{p\leq n} 1/(p-1) \approx x \ln \ln x$, which gives his function is $\ln \ln x + \frac{1}{\ln x}$ and we can drop the latter term asymptotically. I really shouldn't post when I'm this tired.2011-09-07
  • 0
    Ok. Nice. I'll vote it up.2011-09-07