Skip to main content
QUICK REVIEW

[Paper Review] Algorithmic concepts for the computation of Jacobsthal's function

Mario Ziller, John F. Morack|arXiv (Cornell University)|Nov 2, 2016
Advanced Mathematical Theories and ApplicationsPhysics and Astronomy4 references5 citations
TL;DR

This paper presents and evaluates multiple algorithmic approaches—brute force, dynamic programming, integer linear programming (ILP), and a specialized DSA algorithm—for computing Jacobsthal's function $ h(n) = j(p_n\/#) $, the minimal length $ m $ such that every sequence of $ m $ consecutive integers contains one coprime to the $ n $-th primorial. The authors compute $ h(n) $ and $ \omega(n) $ for all $ n \leq 54 $, corresponding to primes up to 251, and provide exhaustive lists of maximal sequences of consecutive integers not coprime to $ p_n\# $, including modulus, remainder, and permutation representations in ancillary files.

ABSTRACT

The Jacobsthal function has aroused interest in various contexts in the past decades. We review several algorithmic ideas for the computation of Jacobsthal's function for primorial numbers and discuss their practicability regarding computational effort. The respective function values were computed for primes up to 251. In addition to the results including previously unknown data, we provide exhaustive lists of all sequences of the appropriate maximum lengths in ancillary files.

Motivation & Objective

  • To develop and compare efficient algorithmic methods for computing Jacobsthal's function $ h(n) = j(p_n\#) $, the smallest $ m $ such that every $ m $-length interval contains an integer coprime to the $ n $-th primorial.
  • To compute $ h(n) $, $ h^*(n) $, and $ \omega(n) $ for all $ n \leq 54 $, corresponding to primes up to 251, extending known values.
  • To generate and provide exhaustive lists of all maximal sequences of consecutive integers not coprime to $ p_n\# $, represented via modulus, remainder, and permutation formats.
  • To enable generalization of the results to arbitrary squarefree integers using prime separation and the reduced Jacobsthal function.

Proposed method

  • The DSA (Dynamic Sequence Algorithm) computes $ \psi_{\text{min}}(m,k) $, the minimal number of primes needed to cover $ m $ consecutive positions using $ k $ odd primes, via dynamic programming.
  • The ILP (Integer Linear Programming) formulation models the covering problem as a binary integer program, minimizing the number of primes used to cover a sequence of length $ m $, with constraints ensuring each position is divisible by at least one prime.
  • The brute force and basic sequential algorithms (BSA) are used as baselines, with BSA attempting to maximize coverage in a fixed array, while DSA minimizes coverage to find minimal prime sets.
  • The condensed Jacobsthal function $ \omega(n) = j^*(p_n\# / 2) $ is used to simplify computation by excluding the prime 2, leveraging the identity $ j(2n) = 2j(n) $ for odd $ n $.
  • Ancillary files store all maximal sequences in three representations: modulus (prime assigned to each position), remainder (residues modulo each prime), and permutation (ordering of primes used).
  • All algorithms are implemented and tested on a single-threaded i7 system, with ILP results scaled to account for parallel execution in SYMPHONY to ensure fair comparison.

Experimental results

Research questions

  • RQ1What are the most efficient algorithmic approaches for computing the Jacobsthal function $ h(n) = j(p_n\#) $ for primorials?
  • RQ2What is the maximal length of a sequence of consecutive integers all sharing a common factor with $ p_n\# $, i.e., $ h^*(n) $, for $ n \leq 54 $?
  • RQ3How can all maximal sequences of consecutive integers not coprime to $ p_n\# $ be systematically enumerated and represented in multiple formats?
  • RQ4Can the function $ j(n) $ for arbitrary squarefree $ n $ be computed using the same algorithmic framework via prime separation and reduction to $ \omega(n) $?
  • RQ5What is the computational complexity growth of different algorithms as $ n $ increases, and how do they scale with the number of primes?

Key findings

  • The authors compute $ h(n) $ for all $ n \leq 54 $, with $ h(54) = 858 $, corresponding to the 54th primorial $ p_{54}\# $, and $ \omega(54) = 428 $, the maximal length of a sequence of consecutive integers each divisible by at least one odd prime up to $ p_{54} = 251 $.
  • For $ n = 54 $, the maximal sequence length $ h^*(54) = 857 $, meaning there exists a sequence of 857 consecutive integers, each sharing a common factor with $ p_{54}\# $, but no such sequence of length 858.
  • The DSA algorithm proves most effective for computing $ \psi_{\text{min}}(m,k) $, enabling the identification of all maximal sequences efficiently.
  • The ancillary files contain exhaustive data: 1,078 sequences for $ n = 54 $, with modulus, remainder, and permutation representations stored in separate files for direct comparison.
  • The computational cost of all algorithms grows rapidly with $ n $, with ILP showing the highest time consumption, even after scaling for parallel execution.
  • The results extend known values of $ h(n) $ beyond previous records, with $ h(54) = 858 $ being a new, previously unknown value.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.