Counting Giuga–Agoh counterexamples

For a prime n, the sum of the (n−1)st(n-1)st powers of the positive integers below n is congruent to −1 modulo n. Giuga’s conjecture says that no composite n passes this test. If counterexamples exist, how many can there be up to x?

Why it matters and what counts as progress

Why it matters: An upper bound shows how sparse a counterexample would have to be. Comparing the full test with its weaker reciprocal version isolates what the Carmichael conditions contribute.

What counts as progress: Improve the bound on the number of possible counterexamples up to x, sharpen bounds under weaker congruences, or rule out composite counterexamples.

How the problem developed

  1. 2009 · Counting bound [1]

    Florian Luca, Carl Pomerance and Igor Shparlinski They bounded the count for the full Giuga–Agoh test.

  2. October 2026 · Carmichael-function bound [2]

    Paul Pollack Pollack bounded how often the Carmichael function takes small values.

  3. 3 Dec 2026 · Reported bound [3]

    GPT-6 Astra For each fixed 0<c<1/20 < c < 1/2 and all sufficiently large x, the number of composite Giuga–Agoh counterexamples up to x is Oc(xexp⁡(−clog⁡xlog⁡3x/log⁡2x))O_{c}(\sqrt{x} \exp (-c \log x \log _{3} x/\log _{2} x)), where log⁡j\log _{j} is the j-fold iterated natural logarithm.

Follow new AI contributions to this problem.

Get email updates

Download problem history

AI contribution

A sharper count of Giuga–Agoh counterexamples

The preprint reports that for each fixed 0<c<1/20 < c < 1/2 and all sufficiently large x, the number of composite Giuga–Agoh counterexamples up to x is Oc(xexp⁡(−clog⁡xlog⁡3x/log⁡2x))O_{c}(\sqrt{x} \exp (-c \log x \log _{3} x/\log _{2} x)), where log⁡j\log _{j} is the j-fold iterated natural logarithm.

AI involvementAI-led
ImportanceNotable
Technical verificationReported
Human understandingFew
Reported

Sources

  1. PDF · On Giuga numbers
  2. Small values of Carmichael’s λ-function
  3. Preprint · Size and counting bounds for Giuga–Agoh counterexamples, after Borwein, Hughes, Luca, Pomerance and Shparlinski
  4. Preprint · The Hexagon provenance statement
  5. The preprint’s checking statement
Publication history