HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Mathematics
  2. /Number Theory

Number Theory

Mathematics · High School (11–12) · 6 courses, 60 worked problems

Number theory studies the whole numbers and how they divide one another. A prime has exactly two factors, 111 and itself, and every whole number greater than 111 is a product of primes in one way only. Congruence gives a short way to work with remainders: a≡b(modn)a \equiv b \pmod{n}a≡b(modn) means nnn divides a−ba - ba−b. With it we can find the last digit of a large power or test divisibility. Diophantine equations ask for whole-number solutions only. Number theory is the base of the codes that protect messages and payments online.

With practice you will be able to

  • Find the HCF of two numbers with the Euclidean algorithm
  • Solve linear congruences and find remainders of large powers
  • Find all whole-number solutions of ax+by=cax + by = cax+by=c

On the syllabus of

  • Olympiads
  • ISI Admission Test
  • CMI Entrance

Lessons

  • Division, Divisibility Rules and PrimesWhat can division prove?High School (11–12)
  • Common Factors, the Euclidean Algorithm and Divisors1000 students open and close 1000 lockers. Which lockers end up open?High School (11–12)
  • Factorials, Irrational Numbers, Digits and the Floor FunctionHow many zeros end 100 factorial?High School (11–12)
  • Congruences and the Chinese Remainder TheoremEggs counted in twos up to sixes leave one over. How many are there?High School (11–12)
  • The Theorems of Fermat, Euler and WilsonWhat are the last two digits of 13²⁰²⁶? How long is the repeating part of 1/41?High School (11–12)
  • Diophantine Equations and Pythagorean TriplesWith 5 and 8 unit stamps, what is the largest amount you cannot make?High School (11–12)

Worked problems

Each one has a hint, the key idea and a full worked solution.

  • A student notices that 2⁵ - 2 = 30, 3⁵ - 3 = 240 and 4⁵ - 4 = 1020 are all multiples of 30…Hard
  • A locker code a is a whole number that leaves remainder 5 when it is divided by 9…Hard
  • Multiply four consecutive whole numbers and add 1…Advanced
  • A label on a box of 72 equal packets shows the total mass in grams as a five-digit number 6a49b…Hard
  • A six-digit number is called a repeater when its last three digits repeat its first three, like…Hard
  • A machine can print only the digits 0 and 1…Advanced
  • Every odd prime leaves remainder 1 or 3 on division by 4…Advanced
  • A student computes n⁴ + 4 for small n: 5, 20, 85, 260…Advanced
  • We want positive whole numbers n with special multiples…Advanced
  • Numbers of the form 2ⁿ - 1 are called Mersenne numbers…Advanced
  • Two positive whole numbers a < b have the sum a + b = 96 and the least common multiple lcm(a, b) =…Advanced
  • Let dn = gcd(n² + 3, n + 2) for positive whole numbers n…Hard

All 60 worked problems on Number Theory →

Python labs

  • Division without the division keys
  • Prime factorisation machine
  • Euclid and Bezout by machine
  • Counting and adding divisors
  • Legendre's formula by machine
  • Bases and squares