TITLE: Comparing sizes of sets of natural numbers
QUESTION [16 upvotes]: It seems natural to consider $\lim_{q \rightarrow 1^-} \sum_{n \in S} q^n - \sum_{n \in T} q^n$, when it exists, as a way of comparing the sizes of two sets $S,T \subseteq {\bf N}$ that have the same density; for instance, $\{0,2,4,...\}$ and $\{1,3,5,...\}$ both have density 1/2, but the first set might be said to contain "half an element more" than the second, based on the fact that $1-q+q^2-q^3+...$ converges to 1/2 as $q$ goes to 1. Has this (non-Archimedean, non-translation-invariant) refinement of the concept of density, or anything similar to it, been developed anywhere?
Put $|S|_q = \sum_{n \in S} q^n$. Just as 
$|\{0,2,4,6,...\}|_q-|\{1,3,5,7,...\}|_q \rightarrow 1/2$ as $q \rightarrow 1^-$, it seems empirically that 
$$|\{0,1,4,9,16,...\}|_q-|\{0,2,6,12,20,...\}|_q \rightarrow 1/2,$$
$$|\{0,1,5,12,22,...\}|_q-|\{0,2,7,15,26,...\}|_q \rightarrow 1/3,$$ and
$$|\{0,1,3,6,10,..,\}|_q - \sqrt{2} |\{0,1,4,9,16,...\}|_q \rightarrow \sqrt{2}/2.$$ Is there a place in the literature where results like this can be found, as part of a general setup for measuring sets that "sees" things at a finer level than mere density? To give one last example, racing "evil" versus "odious" numbers, it is easy to prove that $$|\{0,3,5,6,9,10,12,15,...\}|_q-|\{1,2,4,7,8,11,13,14,...\}|_q \rightarrow 0.$$
[ADDED ON MAY 17, 2017: There is now (at least) one article that uses analytic tools to generalize the notion of cardinality of sets of natural numbers: my preprint "One-Dimensional Packing: Maximality Implies Rationality", available at https://arxiv.org/abs/1704.08785 ]

REPLY [4 votes]: Your post expresses the same idea about comparison of infinite sets as in my previous post with the difference being that you use Abel summation while I did use Ramanujan's summation and Zeta regularization. To be more precise, I used Faulhaber's formula for summation because it gives the same results as Ramanujan's summation (I do not know a proper term for this summation method):
$$\sum _{x\ge0}^\Re f(x)=-\sum _{n=1}^\infty \frac {f^{(n-1)}(0)}{n!} B_n(0)$$
Now, addressing your concerns, expressed in the comments to the other answer,  there is a set of similar summation methods that are mostly compatible with each other. One can see that some of them depend only on the values of the series at the integer points while others involve integrals and derivatives. So, it clearly means that there can be constructed examples where these methods give different results.
My strong conviction, even if I do not have a proof, is that all these methods should give the same results for "well-behaving" functions. By "well-behaving" I mean functions that are equal to their Newton series:
$$f(x) = \sum_{k=0}^\infty \binom{x-a}k \Delta^k f\left (a\right)$$
I call such functions "discrete-analytic", "Newton-analytic" or "Newtonian".
The criterion can also be written in the following form:
$$f(x)=\lim_{n\to\infty}\frac{\sum_{k=0}^{n} \frac{(-1)^k f(k)}{(x-k)k!(n-k)!}}{\sum_{k=0}^{n} \frac{(-1)^k }{(x-k) k!(n-k)!}}$$
Some functions would have this series divergent, but their two-directional expansion would converge:
$$f(x)=\lim_{n\to\infty}\frac{\sum _{k=-n}^n \frac{(-1)^k f(k)}{(x-k) (k+n)! (n-k)!}}{\sum _{k=-n}^n \frac{(-1)^k}{(x-k) (k+n)! (n-k)!}}$$
I would include such functions into "Newtonian" as well.