“Cardinalities of Restricted Ranges”. Journal of Computational Mathematics, vol. 2, no. 1, Feb. 1984, pp. 33-40, https://gsp.tricubic.dev/JCM/article/view/10748.