Saturday, September 28, 2024
Google search engine
HomeData Modelling & AINumber Theory for DSA & Competitive Programming

Number Theory for DSA & Competitive Programming

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.

Basics of Number Theory:

Modular Arithmetic:

Number Theory:

Game Theory:

Practice Problems on Number Theory:

Problems

Searching for Patterns | Set 3 (Rabin-Karp Algorithm)
Measure one litre using two vessels and infinite water supply
Program to find last digit of n’th Fibonnaci Number
GCD of two numbers when one of them can be very large
Find Last Digit Of a^b for Large Numbers
Remainder with 7 for large numbers
Find (a^b)%m where ‘a’ is very large
Find sum of modulo K of first N natural number
Count all sub-arrays having sum divisible by k
Partition a number into two divisble parts
Find power of power under mod of a prime
Rearrange an array in maximum minimum form | Set 2 (O(1) extra space)
Subset with no pair sum divisible by K
Number of substrings divisible by 6 in a string of integers

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

Feeling lost in the world of random DSA topics, wasting time without progress? It’s time for a change! Join our DSA course, where we’ll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 neveropen!

Commit to GfG’s Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore.

Last Updated :
17 Jan, 2024
Like Article
Save Article
Share your thoughts in the comments

RELATED ARTICLES

Most Popular

Recent Comments