Table of Contents
Fetching ...

Counting appearances of integers in sets of arithmetic progressions

Florian Pausinger

TL;DR

This paper establishes a direct counting interpretation for the determinant-defined sequence $A067549$: for the first $k$ primes and their product $P_k$, $a_k$ equals the number of integers in $[1,P_k]$ that lie in at most one of $k$ residue classes, while a companion sequence $f_k$ counts the completely uncontained integers. It derives efficient, determinant-based recurrences $f_k=(p_k-1)f_{k-1}$ and $a_k=f_{k-1}+(p_k-1)a_{k-1}$, and proves that $a_k=av(k)$ and $f_k=free(k)$ by induction. The work also provides a novel determinant characterisation of the related sequence $A005867$ and shows how to generalise the framework to arbitrary sets of arithmetic progressions generated by $k$ distinct primes, with fast determinant computations. The results connect a classical number-theoretic counting problem to linear-algebraic structures and offer a scalable method for evaluating such determinants in practice.

Abstract

The sequence $A067549$ of The On-Line Encyclopedia of Integer Sequences is defined as $(a_k)_{k \geq 1}$ with $a_k$ being the determinant of the $k \times 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 $r_i$ for each prime $p_i$ with $1 \leq i \leq k$ and set $P_k = \prod_{i=1}^k p_i$. We show that $a_k$ is the number of integers in $[1, P_k]$ that are contained in \emph{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, P_k]$ 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.

Counting appearances of integers in sets of arithmetic progressions

TL;DR

This paper establishes a direct counting interpretation for the determinant-defined sequence : for the first primes and their product , equals the number of integers in that lie in at most one of residue classes, while a companion sequence counts the completely uncontained integers. It derives efficient, determinant-based recurrences and , and proves that and by induction. The work also provides a novel determinant characterisation of the related sequence and shows how to generalise the framework to arbitrary sets of arithmetic progressions generated by distinct primes, with fast determinant computations. The results connect a classical number-theoretic counting problem to linear-algebraic structures and offer a scalable method for evaluating such determinants in practice.

Abstract

The sequence of The On-Line Encyclopedia of Integer Sequences is defined as with being the determinant of the matrix whose diagonal contains the first prime numbers and all other elements are ones. We relate this sequence to a concrete counting problem. Choose an arbitrary residue class for each prime with and set . We show that is the number of integers in that are contained in \emph{at most} one of the chosen residue classes. Interestingly, we show that this sequence is closely related to the better known sequence for which we derive a novel characterisation in terms of determinants and which gives the number of integers in that are not contained in any of the 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 different primes using the determinant of a matrix of ones having those primes on its diagonal. The revealed structure also offers a fast way of calculating such determinants.

Paper Structure

This paper contains 5 sections, 7 theorems, 36 equations.

Key Result

Theorem 1

Let $p_1, \ldots, p_k$ be the first $k$ prime numbers and let $P_k:=\prod_{i=1}^k p_i$ be their product. For a given choice of residue classes, i.e., one residue class $r_i$ for each prime $p_i$, the number of available elements in $[1,P_k]$ is $a_k$ and the number of free elements is $f_k$. In othe

Theorems & Definitions (15)

  • Theorem 1
  • Remark 1
  • Remark 2
  • Remark 3
  • Lemma 1
  • proof
  • Lemma 2
  • proof
  • Lemma 3
  • proof
  • ...and 5 more