Fermat's Little Theorem Calculator - Multi-Tools

Fermat's Little Theorem Calculator

Must be a positive integer
Must be a prime number

Result

How to Use

  1. Enter a base number (a)
  2. Enter a prime number (p)
  3. Click "Calculate" to see the result
  4. The calculator will verify the theorem and show the calculation steps

What is Fermat's Little Theorem?

Fermat's Little Theorem states that if p is a prime number and a is any integer not divisible by p, then:

a^(p-1) ≡ 1 (mod p)

Example: For a = 2 and p = 5:

2^(5-1) = 2^4 = 16 ≡ 1 (mod 5)

Properties and Applications

PropertyDescriptionApplication
Modular Exponentiationa^(p-1) ≡ 1 (mod p)Fast exponentiation
Prime TestingIf a^(p-1) ≢ 1 (mod p), then p is not primeProbabilistic primality testing
Modular Multiplicative Inversea^(p-2) ≡ a^(-1) (mod p)Finding modular inverses

Applications

  • Cryptography (RSA algorithm)
  • Primality testing
  • Modular arithmetic calculations
  • Number theory problems
  • Fast exponentiation algorithms
Advertisement Space

Why Choose Our Calculator Platform?

Our professional calculator tools are designed to provide accurate, fast, and reliable results for financial, health, and everyday calculations.

Instant Results

All calculations are processed instantly in your browser with real-time output.

100% Secure

Your data is never stored. Everything runs locally for complete privacy.

Accurate Formulas

Built using verified mathematical formulas to ensure precise and reliable results.

Mobile Friendly

Fully responsive design works smoothly on desktop, tablet, and mobile devices.

4000+ Calculators

From EMI to BMI and GST, access multiple calculators in one place.

Modern Interface

Professional UI with clean layout, smooth animations, and easy navigation.

Scroll to Top