English

Counting composites with two strong liars

Number Theory 2013-08-06 v1

Abstract

The strong probable primality test is an important practical tool for discovering prime numbers. Its effectiveness derives from the following fact: for any odd composite number nn, if a base aa is chosen at random, the algorithm is unlikely to claim that nn is prime. If this does happen we call aa a liar. In 1986, Erd\H{o}s and Pomerance computed the normal and average number of liars, over all nxn \leq x. We continue this theme and use a variety of techniques to count nxn \leq x with exactly two strong liars, those being the nn for which the strong test is maximally effective. We evaluate this count asymptotically and give an improved algorithm to determine it exactly. We also provide asymptotic counts for the restricted case in which nn has two prime factors, and for the nn with exactly two Euler liars.

Keywords

Cite

@article{arxiv.1308.0880,
  title  = {Counting composites with two strong liars},
  author = {Eric Bach and Andrew Shallue},
  journal= {arXiv preprint arXiv:1308.0880},
  year   = {2013}
}
R2 v1 2026-06-22T01:03:49.147Z