What is the density of integers of the form $a^2+nb^2$?
Yes there is quite a bit in the literature on this problem. Apparently it was first solved by Bernays in his 1912 PhD thesis under Landau. The density is as expected (namely proportional to $x/\sqrt{\log x}.$)
A modern paper on the topic is:
Brink, Moree, Osburn - Principal forms $X^2+nY^2$ representing many integers.
This contains many useful references about the history of the problem.
R. W. K. Odoni has his own proof of the theorem, see this paper on the problem,
"On norms of integers in a full module of an algebraic number field and the distribution of values of binary integral quadratic forms",
published in Mathematika 22 (1975), no. 2, 108–111. See Narkiewicz's review. Odoni's paper does not appear in the paper mentioned by Daniel.
The concluding remarks in Odoni's paper are very interesting and refer to some earlier partial results.