Giuga Number

Contribute to this entry

Any composite number n with p|(n/p-1) for all prime divisors p of n. n is a Giuga number iff

 sum_(k=1)^(n-1)k^(phi(n))=-1 (mod n)
(1)

where phi is the totient function and iff

 sum_(p|n)1/p-product_(p|n)1/p in N.
(2)

n is a Giuga number iff

 nB_(phi(n))=-1 (mod n),
(3)

where B_k is a Bernoulli number and phi is the totient function. Every counterexample to Giuga's conjecture is a contradiction to Agoh's conjecture and vice versa. The smallest known Giuga numbers are 30 (3 factors), 858, 1722 (4 factors), 66198 (5 factors), 2214408306, 24423128562 (6 factors), 432749205173838, 14737133470010574, 550843391309130318 (7 factors),

244197000982499715087866346, 554079914617070801288578559178

(8 factors), ... (OEIS A007850).

It is not known if there are an infinite number of Giuga numbers. All the above numbers have sum minus product equal to 1, and any Giuga number of higher order must have at least 59 factors. The smallest odd Giuga number must have at least nine prime factors.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.