Skip to main content

16 docs tagged with "number theory"

View all tags

Counting Divisors

An algorithm to compute the total number of divisors of a given integer n.

Discrete Logarithm

An overview of the Discrete Logarithm problem and its applications in cryptography.

Fermat's Little Theorem

A comprehensive guide to calculating the modular multiplicative inverse using Fermat's Little Theorem.

Finding Power of Factorial Divisor

Legendre's Formula calculates the largest exponent x such that k^x divides n!, the factorial of a number, by summing the quotients of n divided by successive powers of k.

GCD Algorithm

A detailed guide to understanding and implementing the GCD (Greatest Common Divisor) Algorithm in Number Theory.

LCM Algorithm

A detailed guide to understanding and implementing the LCM (Least Common Multiple) Algorithm in Number Theory.

Modular Arithmetic

Modular arithmetic is a fundamental concept in mathematics, essential for cryptography and number theory.

Modular Arithmetic

A detailed guide to understanding and implementing the Modular Arithmetic in Number Theory.

Modular Exponentiation

A comprehensive guide on Modular Exponentiation for fast computation of large powers in modular arithmetic.

Modular Exponentiation Algorithm

Modular Exponentiation is an algorithm used to efficiently compute large powers modulo a number, using a technique called exponentiation by squaring.

Sieve of Eratosthenes

The Sieve of Eratosthenes is an efficient algorithm to find all prime numbers up to a given limit.

Sieve of Eratosthenes

A complete guide to understanding and implementing the Sieve of Eratosthenes for finding prime numbers.

Van Eck's Sequence Algorithm

A comprehensive guide to Van Eck's Sequence, a fascinating mathematical sequence with a simple definition but complex behavior.