English

Counting appearances of integers in sets of arithmetic progressions

Number Theory 2025-12-19 v1 Combinatorics

Abstract

The sequence A067549A067549 of The On-Line Encyclopedia of Integer Sequences is defined as (ak)k1(a_k)_{k \geq 1} with aka_k being the determinant of the k×kk \times k matrix whose diagonal contains the first kk prime numbers and all other elements are ones. We relate this sequence to a concrete counting problem. Choose an arbitrary residue class rir_i for each prime pip_i with 1ik1 \leq i \leq k and set Pk=i=1kpiP_k = \prod_{i=1}^k p_i. We show that aka_k is the number of integers in [1,Pk][1, P_k] that are contained in \emph{at most} one of the kk chosen residue classes. Interestingly, we show that this sequence is closely related to the better known sequence A005867A005867 for which we derive a novel characterisation in terms of determinants and which gives the number of integers in [1,Pk][1, P_k] that are not contained in any of the kk residue classes. Our proof is purely structural and, therefore, it can be generalised to counting appearances of integers in residue classes of arbitrary arithmetic progressions generated by kk different primes using the determinant of a matrix of ones having those kk primes on its diagonal. The revealed structure also offers a fast way of calculating such determinants.

Keywords

Cite

@article{arxiv.2512.16358,
  title  = {Counting appearances of integers in sets of arithmetic progressions},
  author = {Florian Pausinger},
  journal= {arXiv preprint arXiv:2512.16358},
  year   = {2025}
}

Comments

7 pages