I have just finished a master's degree in Mathematics and want to learn everything possible about algebraic number fields and especially applications to the generalized Pell equation (my thesis topic), $x^2Dy^2=k$, where $D$ is square free and $k \in \mathbb{Z}$. I have a solid foundation in Modern Algebra and Elementary number theory as well as Analysis. Does anyone have any suggestions? I am currently reading Harvey Cohn's 'Advanced Number Theory' with slow but marked progress. Thanks.

35To learn 'everything possible' about algebraic number fields you'll have to reserve, say, your next 500 years... – Mariano SuárezÁlvarez Jan 28 '10 at 21:24

14Ersnt Kunz starts the forword to his Introduction to Commutative Algebra and Algebraic Geometry with: «It has been estimated that, at the present state of our knowledge, one could give a 200 semester course on commutative algebra and algebraic geometry without ever repeating himself.» His subject is not unique in that respect! – Mariano SuárezÁlvarez Jan 28 '10 at 21:53

There is a very similar thread here mathoverflow.net/questions/8097/… perhaps you will find some useful suggestions there. – GMRA Jan 28 '10 at 22:48

5Pierre Samuel's "Algebraic Theory of Numbers" gives a very elegant introduction to algebraic number theory. It doesn't cover as much material as many of the books mentioned here, but has the advantages of being only 100 pages or so and being published by dover (so that it costs only a few dollars). Reading this would certainly prepare you well for some of the more advanced books that require more of a commitment to go through. – Ben Linowitz Feb 1 '11 at 20:59

3Cohn's book is well worth reading carefully, and Ireland and Rosen is an excellent text too. – Emerton Feb 2 '11 at 15:09
I know of very few more endearing books on the subject than Ireland and Rosen's A Classical Introduction to Modern Number Theory.

13
Though Mariano's comment above is no doubt true and the most complete answer you'll get, there are a couple of texts that stand apart in my mind from the slew of textbooks with the generic title "Algebraic Number Theory" that might tempt you. The first leaves off a lot of algebraic number theory, but what it does, it does incredibly clearly (and it's cheap!). It's "Number Theory I: Fermat's Dream", a translation of a Japanese text by Kazuya Kato. The second is Cox's "Primes of the form $x^2+ny^2$, which in terms of getting to some of the most amazing and deepest parts of algebraic number theory with as few prerequisites as possible, has got to be the best choice. For something a little more encyclopedic after you're done with those (if it's possible to be "done" with Cox's book), my personal favorite more comprehensive reference is Neukirch's Algebraic Number Theory.

6Agreed. Neukirch is an amazing book, not least because of how seriously it takes the analogy between number fields and function fields. – Qiaochu Yuan Jan 28 '10 at 23:33

1

1
Marcus's Number Fields is a good intro book, but its not in Latex, so it looks ugly. Also doesn't do any local (padic) theory, so you should pair it with Gouvea's excellent intro padic book and you have great first course is algebraic number theory.

7

3Marcus wrote the book much before Wiles proved the FLT; so the introductory chapter on solving FLT for regular primes etc is fascinating. Also, the book has lots of concrete problems and exercises. – Abhishek Parab Jul 7 '10 at 5:31

4Marcus' book is my first choice. Very handson, many exercises, and clear explanations. More than makes up for the fact that it's typewritten. Once you have understood something, you can then go and read about it again in Neukirch (which covers a lot more stuff), it will give you a different perspective. – Laurent Berger Feb 1 '11 at 18:39

3+1 For Marcus, really one of the best books on the subject. And yes, you are not the only people thinking that it deserves to be retyped! – Maurizio Monge Feb 1 '11 at 19:36

4
Many people have recommended Neukirch's book. I think a good complement to it is Janusz's Algebraic Number Fields. They cover roughly the same material. Neukirch's presentation is probably the slickest possible; Janusz's is the most hands on. I love them both now, but I found Janusz understandable at a point when Neukirch was still completely impenetrable.
Neither of these is particularly strong on the Pell equation, though.
It might be at too basic/introductory a level for your purposes, but as an undergraduate I really liked Stewart and Tall's Algebraic Number Theory (2nd edition?)
I would recommend you take a look at William Stein's free online algebraic number theory textbook. It is especially useful if you want to learn how to compute with number fields, but it is still extremely readable even if you skip the details of the computational examples.
I could be wrong, but I think Borevich and Shafarevich cover material related to Pell's equation. If not, then it is still an excellent book on algebraic number theory as is Serre's "A Course in Arithmetic". However Serre does not discuss Pell's equation.
(I also found Cohn difficult to read =)
In particular, in view of the focus of your studies, I suggest the following additional book; where additional is meant that I would not suggest it as the only book (see below for explanation).
There is a fairly recent book (in two volumes) by Henri Cohen entitled "Number Theory" (Graduate Texts in Mathematics, Volumes 239 and 240, Springer). [To avoid any risk of confusion: these are not the two GTMbooks by the same author on computational number theory.]
It contains material related to Diophantine equations and the tools used to study them, in particular, but not only, those from Algebraic Number Theory. Yet, this is not really an introduction to Algebraic Number Theory; while the book contains a chapter Basic Algebraic Number Theory, covering the 'standard results', it does not contain all proofs and the author explictly refers to other books (including several of those already mentioned).
However, I could imagine that a rich exposition of how the theory you are learning can be applied to various Diophantine problems could be valuable.
Final note: the book is in two volumes, the second one is mainlyon analytic tools, linear forms in logarithms and modular forms applied to Diophantine equations; for the present context (or at least initially), the first volume is the relevant one.
If you want to have a pretty solid foundation of this subject, then you are suggested to read the book Lectures on Algebraic Number Theory by Hecke which is extremely excellent in the discussion of topics even important nowadays, or the report of number theory by Hilbert whose foundation is indeed solid.
In addition, Gauss's book, being a little old and hard, is a good reference on quadratic forms and it itself offers two different kinds of proofs of the quadratic reciprocity law which are all excellent to me.
The last but not the least, I would like to confirm once more the book by Jurgen Neukirch which notes the connection between ideals and lattices, i.e. algebraic numbers and geometry.
Look at: Map of Number Theory
The book recommended there (Manin/Panchishkin's "Introduction to Modern Number Theory") does seem amazingly comprehensive, and very readable.
Serge Lang's Algebraic Number Theory has a lot of general theoretical material.
See Solving the Pell Equation (reviewed here). You probably know Lenstra Jr.'s article in the AMS Notices. There's also Primes of the form $x^2 + ny^2$ by Cox.
If you want to learn class field theory (which you should at some point, after you have read an introductory book on algebraic number theory), then "Algebraic Number Theory" edited by Cassels and Fröhlich is a classic that doesn't get old. It has been recently reprinted by the LMS.
I am amazed not to see the book "Introductory Algebraic Number Theory," by Alaca & Williams, listed here. I find it to be one of the most clear math books on an advanced topic, ever.
The book Number theory II by Koch (translated by Parshin and Shafarevich) is very good, and contains some hardtofind material. For example, they give a presentation of the absolute Galois group of a local field.
Also (I can't imagine someone else hasn't suggested this) the conference proceedings Algebraic number theory, edited by Cassels and Fröhlich, is a pretty standard text with lots of useful stuff (including Tate's thesis!)