What is Number Theory?
Number theory is a branch of pure mathematics that deals with the properties and relationships of numbers, particularly integers. It explores the fundamental nature of numbers and their mathematical structures. Number theory has been studied for centuries and has deep connections with various areas of mathematics, including algebra, analysis, and geometry.
Table of Content
Basics of Number Theory:
- Find the GCD of two number
- Find the LCM of two number
- Calculate the Factorial of a number
- Program to find Prime factors of a number
- Find Binomial Coefficient C(n, k)
- Program to find nth Catalan numbers
- Euclid’s Lemma
- Basic and Extended Euclidean algorithms
Modular Arithmetic:
- Euler’s Totient Function
- Euler’s Totient function for all numbers smaller than or equal to n
- Modular Exponentiation (Power in Modular Arithmetic)
- Find the remainder without using the modulo operator
- Modular multiplicative inverse
- Multiplicative order
- Compute nCr % p using Dynamic Programming Solution
- Lucas Theorem
- Compute nCr % p using Lucas Theorem
- Compute nCr % p using Fermat Little Theorem
- Fermat Little Theorem.
- Chinese Remainder Theorem
- Chinese Remainder Theorem using Inverse Modulo-based Implementation
- Find Square Root under Modulo p | Set 1 (When p is in form of 4*i + 3)
- Find Square Root under Modulo p | Set 2 (Shanks Tonelli algorithm)
- Modular Division
- Cyclic Redundancy Check and Modulo-2 Division
- Find primitive root of a prime number n modulo n
- Euler’s criterion (Check if square root under modulo p exists)
- Combine Modular equations using the Chinese Remainder Theorem
- Multiply large integers under large modulo
- Compute n! under modulo p
- Wilson’s Theorem
Number Theory:
- Primality Test to check if a number is prime or not
- Primality Test to check if a number is prime or not using Fermat Method
- Primality Test to check if a number is prime or not using Miller–Rabin
- Primality Test to check if a number is prime or not using Solovay-Strassen
- Legendre’s formula (Given p and n, find the largest x such that p^x divides n!)
- Find if a number is Carmichael Numbers
- Find all generators of cyclic additive group under modulo n
- Sum of divisors of factorial of a number
- Fermat Number
- Sieve of Eratosthenes
- Goldbach’s Conjecture
- Pollard’s Rho Algorithm for Prime Factorization
Game Theory:
Practice Problems on Number Theory:
Miscellaneous Practice Problems on Number Theory:
Problems |
---|
How to compute mod of a big number? |
BigInteger Class in Java |
Modulo 10^9+7 (1000000007) |
How to avoid overflow in modular multiplication? |
RSA Algorithm in Cryptography |
Quick Links
- ‘Practice Problems’ on Modular Arithmetic
- ‘Practice Problems’ on Number Theory
- Ask a Question on Number theory
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 neveropen!