- Chapter 1: The Integers
- Section 1: Numbers and Sequences
- Section 3: Mathematical Induction
- Section 4: The Fibonacci Numbers
- Section 5: Divisibility
- Chapter 3: Primes and Greatest Common Divisors
- Section 1: Prime Numbers
- Problem 1 - Determine if a number is prime via trial division
- Problem 2 - Use the sieve of Eratosthenes to find all primes not exceeding a positive integer
- Problem 3 - Calculate the number of primes not exceeding an integer using a recursive sequence
- Problem 4 - Given a,b find the smalles prime
a * n + bwherea != b - Problem 5 - Find the lucky numbers less than a positive integer
- Section 3: Greatest Common Divisors
- Section 4: The Euclidean Algorithm
- Problem 1 - Calculate the GCD of 2 integers via the Euclidean algorithm
- Problem 2 - Calculate the GCD of 2 integers via the least-remainder algorithm
- Problem 3 - Calculate the GCD of 2 integers without using division
- Problem 4 - Calculate the GCD of a list of integers
- Problem 5 - Calculate the Bezout coefficients for 2 positive integers
- Problem 6 (Not Implemented)
- Problem 7 (Not Implemented)
- Section 5: The Fundamental Theorem of Arithmetic
- Problem 1 - Find all divisors of a number via it's prime factorization
- Problem 2 - Find the GCD of 2 numbers via their prime factorization
- Problem 3 - Find the LCM of 2 numbers via their prime factorization
- Problem 4 - Find the number of zeros at the end of n!
- Problem 5 - Find the prime factorization of n!
- Problem 6 - Find the number of powerful numbers less than a positive integer
- Section 7: Linear Diophantine Equations
- Problem 1 - Find all the solutions of a diophantine equation,
given a, b, and c where
ax+by=c - Problem 2 - Find all the positive solutions of a diophantine
equation, given a, b, and c where
ax+by=c - Problem 3 - Find all the solutions of a diophantine equation,
given a, b, c, and d where
ax+by+cz=d - Problem 4 - Given a, b, find all positive n s.t. the linear
diophantine equation
ax+by=nhas no positive solutions
- Problem 1 - Find all the solutions of a diophantine equation,
given a, b, and c where
- Section 1: Prime Numbers
- Chapter 4: Congruences
- Section 1: Introduction to Congruences
- Problem 1 - Find r for the equation
a=bm+r, 0 <= r < mgiven a and m - Problem 2 - Find c for the equation
(a[+-]b) mod m = c, m < word size / 2 - Problem 3 - Find c for the equation
(a*b) mod m = c, m < word size / 2using Head's algorithm - Problem 4 - Find c for the equation
b^N mod m = cusing modular exponentiation
- Problem 1 - Find r for the equation
- Section 2: Linear Congruences
- Section 1: Introduction to Congruences
If you wish to contribute, be sure to check out the docs
This is simply a side project to practice 3 things:
- GUI programming: I am interested in being able to make nice, intuitive, and easy designs to act as front ends to my projects. I'm hoping this project can bring me one step closer, even if I don't use the tkinter framework again.
- Python programming: Python is a language I've been meaning to play with for a while. I believe that it has the potential to be that language that I use for short one-off scripts and quick mock-ups of ideas.
- Number Theory: I took a number theory class this past semester and had a blast in it. This project is intended to both enhance and reinforce my understanding of the subject in an environment I enjoy.
