A good reference to begin analytic number theory
I'm quite partial to Apostol's books, and although I haven't read them (yet) his analytic number theory books have an excellent reputation.
Introduction to Analytic Number Theory (Difficult undergraduate level)
Modular Functions and Dirichlet Series in Number Theory (can be considered a continuation of the book above)
I absolutely plan to read them in the future, but I'm going through some of his other books right now.
Ram Murty's Problems in Analytic Number Theory is stellar as it has a ton of problems to work out!
If you haven't read the chapter on Dirichlet's theorem on primes in arithmetic proression in Serre's Course in arithmetic, I highly recommend that you do. You can read it independently of what came before.
I liked the book of Ayoub when I was a student. My memory is that it is somewhere between a textbook and a monograph, and that it covers lots of fundamental topics, such as partitions, Dirichelt's theorem, the circle method, and so on. I found it compelling enough that I failed an English course because I spent all my time reading the book instead of writing the required essay.
I just finished a reading course with Chandrasekharan's Introduction to Analytic Number Theory and I really enjoyed it.
It starts at the basics, estimating the size of the $n^{\text{th}}$ prime using Euclid's proof of the infinitude of primes, and follows a logical path starting there and ending at the prime number theorem. I think of the road chosen as the "scenic route"; the journey is just as important as the goal.
Along the way the author's enthusiasm is tangible as he takes detours to touch on interesting results and makes it a point to showcase a large variety of problems and techniques. When proving theorems he'll often opt for a proof given by someone other than the original author, and once or twice he includes multiple proofs which illustrate different perspectives. And, when introducing definitions, they are never just tools to be filed away for later use; they are always placed in the context of an interesting problem and given respect on their own.
Since I can't find a table of contents online, the chapters are:
- The unique factorization theorem
- Congruences
- Rational approximation of irrationals and Hurwitz's theorem
- Quadratic residues and the representation of a number as a sum of four squares
- The law of quadratic reciprocity
- Arithmetical functions and lattice points
- Chebyshev's theorem on the distribution of prime numbers
- Weyl's theorem on uniform distribution and Kronecker's theorem
- Minkowski's theorem on lattice points in convex sets
- Dirichlet's theorem on primes in an arithmetical progression
- The prime number theorem
He also avoids functional equations completely, which I appreciate.
I found a couple reviews online here and here.
I've answered a couple questions using material from the book here and here
I just want to mention that I really, really dislike Apostol's book. It's incredibly dry and thoroughly uninspiring. I found reading the proofs to be a chore, whereas the proofs are the juciest part of Chandrasekharan. To me, Apostol is not a book to be "read" or learned from. It's decent as a reference.