Counting appearances of integers in sets of arithmetic progressions
Abstract
The sequence A067549 of The On-Line Encyclopedia of Integer Sequences is defined as (ak)k ≥ 1 with ak being the determinant of the k × k matrix whose diagonal contains the first k prime numbers and all other elements are ones. We relate this sequence to a concrete counting problem. Choose an arbitrary residue class ri for each prime pi with 1 ≤ i ≤ k and set Pk = Πi=1k pi. We show that ak is the number of integers in [1, Pk] that are contained in at most one of the k chosen residue classes. Interestingly, we show that this sequence is closely related to the better known sequence A005867 for which we derive a novel characterisation in terms of determinants and which gives the number of integers in [1, Pk] that are not contained in any of the k 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 k different primes using the determinant of a matrix of ones having those k primes on its diagonal. The revealed structure also offers a fast way of calculating such determinants.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.