§ The number of pairs (a,b)
such that ab≤x
is O(xlogx)
Fix a given a
. ab ≤ x
implies that b ≤ x/a
, or there are only x/a
possible values for b
.
If we now consider all possible values for a
from 1
upto x
, we get:
∣(a,b):ab<=x∣=a=1∑x∣b:b<=x/a∣≤a=1∑x∣x/a∣≤xa=1∑x(1/a)≤xlogx
To show that the harmonic numbers are upper bounded by log,
can integrate: ∑i=1n1/i≤∫0n1/i=logn
§ Relationship to Euler Mascheroni constant
This is the limit γ≡limn→∞Hn−logn. That this is a constant
tells us that these functions grow at the same rate. To see that this si indeed a constant,
consider the two functions:
- f(n)≡Hn−logn which starts at f(1)=1 and strictly decreases.
- g(n)≡Hn−log(n+1) start lower at g(1)1−log2 and strictly increases. [why? ]
- Also, limnf(n)−g(n)=0. So these sandwhich something in between, which is the constant γ.