Skip to main content

Exercises 21.5 Exercises

2.

Calculate ϕ(n,a) (recall Definition 21.1.7) for various composite n between 10 and 100 for a=2,3,4 and compare to ϕ(n).

3.

Without looking at any links, reconstruct the proof of the infinitude of primes mentioned in the first paragraph of the proof of Fact 21.1.5.

4.

Come up with two functions f(x) and g(x) that both go to infinity as x, such that f(x) is always ahead of g(x), but f and g are asymptotic (to each other).

5.

Come up with two functions f(x) and g(x) that both go to infinity as x, but that switch the lead infinitely often and f and g are asymptotic.

6.

Show that the two limits in the Prime Number Theorem are really equivalent. That is, show that if limxπ(x)/Li(x)=1, then the other limit with x/log(x) is also 1, and vice versa.

7.

Find an arbitrarily long sequence of consecutive composite numbers using factorials.

8.

Come up with two functions f(x) and g(x) such that f(x) is O(g(x)) and g(x) is O(f(x)), but they are not asymptotic.

10.

Show that if n>1000 then

log(2)+1log(n)<2log(2)+log(n)=2log(2n)

To do this, you should compare 2log(n) and (log(2)+1)(log(2)+log(n)) and their derivatives for n=1000 and up, then divide the two expressions appropriately. You will need to justify the calculus fact that if f(x0)>g(x0) and f>g for xx0, then f>g for xx0 as well. See any calculus textbook for review of how derivatives work.

11.

Verify that 3.394nlog(n)<4nlog(2n+1) for n>1000. (See the previous problems; you will need to verify that the derivative of log(n)log(2n+1) is positive in that range.) Also confirm that nlog(n) is increasing .