Number Theory Introduction
- 33Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary focus of number theory?
What is the primary focus of number theory?
33 questions
- 1
What is the primary focus of number theory?
- A
The study of geometric shapes and their properties
- B
The study of continuous functions and limits
- C
The study of counting numbers and their properties
- D
The study of algebraic equations and their solutions
Correct answer
CThe study of counting numbers and their properties
Explanation
Number theory is primarily concerned with counting numbers (positive integers) and their properties, such as primality, divisibility, and perfect squares.
- A
- 2
Which numbers are considered prime?
- A
Numbers that are divisible by 2
- B
Numbers that have exactly two distinct positive divisors: 1 and itself
- C
Numbers that have no factors other than 1
- D
Numbers that are odd and greater than 1
Correct answer
BNumbers that have exactly two distinct positive divisors: 1 and itself
Explanation
A prime number is a positive integer greater than 1 whose only positive divisors are 1 and itself. For example, 11, 13, 17, and 19 are prime.
- A
- 3
Why is 1 not considered a prime number?
- A
Because it is odd
- B
Because it has no factors
- C
Because it would violate the unique factorization theorem
- D
Because it is not a positive integer
Correct answer
CBecause it would violate the unique factorization theorem
Explanation
If 1 were prime, numbers could be factored in multiple ways (e.g., 6 = 2×3 = 2×3×1), destroying the uniqueness of prime factorization, which is fundamental to number theory.
- A
- 4
In Euclid's proof of the infinitude of primes, what is the new number N constructed from a finite list of primes?
- A
N is the smallest number not divisible by any prime on the list
- B
N is the product of all primes on the list minus 1
- C
N is the product of all primes on the list plus 1
- D
N is the sum of all primes on the list
Correct answer
CN is the product of all primes on the list plus 1
Explanation
Euclid multiplies all assumed primes together and adds 1 to obtain N. This N is not divisible by any of the listed primes, so it must have a new prime factor, contradicting the finite list assumption.
- A
- 5
Which of the following statements is true about primes of the form 4n+3?
- A
None of them are prime
- B
There are only finitely many such primes
- C
There are infinitely many such primes
- D
They are all of the form 4n+1
Correct answer
CThere are infinitely many such primes
Explanation
The lecture states that Euclid's proof can be adapted to show there are infinitely many primes of the form 4n+3, and Dirichlet's theorem generalizes this to any arithmetic progression where a and b are coprime.
- A
- 6
What is a Mersenne prime?
- A
A prime of the form 2^n - 1
- B
A prime of the form 2^n + 1
- C
A prime that ends with the digit 1
- D
A prime that is one less than a power of two
Correct answer
AA prime of the form 2^n - 1
Explanation
Mersenne primes are primes of the form 2^n - 1, such as 3, 7, 31, and 127. They are named after Marin Mersenne, who studied them in the 17th century.
- A
- 7
Is it true that if n is prime, then 2^n - 1 is always prime?
- A
Yes, it is always prime
- B
No, because 2^11 - 1 = 2047 is composite (23×89)
- C
Yes, but only when n is odd
- D
No, because n must be a power of two
Correct answer
BNo, because 2^11 - 1 = 2047 is composite (23×89)
Explanation
While n being prime is necessary for 2^n - 1 to be prime, it is not sufficient. For example, n=11 gives 2047 = 23×89, which is composite.
- A
- 8
What is a perfect number?
- A
A number that is equal to the sum of its proper positive divisors
- B
A number that is a product of two consecutive integers
- C
A number that is a power of 2
- D
A number that is a multiple of all its digits
Correct answer
AA number that is equal to the sum of its proper positive divisors
Explanation
A perfect number is a positive integer where the sum of its proper divisors (excluding the number itself) equals the number. Examples include 6 (1+2+3) and 28 (1+2+4+7+14).
- A
- 9
According to Euclid, how can an even perfect number be generated?
- A
It is the square of an integer
- B
It is the product of a power of 2 and a Mersenne prime
- C
It is the sum of the first n primes
- D
It is the product of two consecutive odd numbers
Correct answer
BIt is the product of a power of 2 and a Mersenne prime
Explanation
Euclid proved that if 2^n - 1 is prime, then (2^(n-1))×(2^n - 1) is a perfect number. For example, 28 = 4×7, where 4 = 2^2 and 7 = 2^3 - 1.
- A
- 10
What did Euler prove about even perfect numbers?
- A
All even perfect numbers are of Euclid's type
- B
Even perfect numbers are always multiples of 3
- C
Even perfect numbers are all divisible by 5
- D
There are no even perfect numbers
Correct answer
AAll even perfect numbers are of Euclid's type
Explanation
Euler proved the converse of Euclid's theorem: every even perfect number is of the form (2^(p-1))×(2^p - 1) where 2^p - 1 is prime. This completed the characterization of even perfect numbers.
- A
- 11
What are Fermat numbers?
- A
Prime numbers of the form 2^n - 1
- B
Numbers that are multiples of 4 plus 1
- C
Numbers of the form 2^(2^n) + 1
- D
Numbers that are one more than a power of two
Correct answer
CNumbers of the form 2^(2^n) + 1
Explanation
Fermat numbers are numbers of the form 2^(2^n) + 1. For n=0,1,2,3,4, they are 3,5,17,257,65537, which are all prime, but Fermat's conjecture that all such numbers are prime was disproved by Euler.
- A
- 12
Which regular polygons can be constructed with ruler and compass?
- A
Those with an odd number of sides
- B
Those with a multiple of 3 sides
- C
Those with a number of sides that is a power of 2 times distinct Fermat primes
- D
Those with a prime number of sides
Correct answer
CThose with a number of sides that is a power of 2 times distinct Fermat primes
Explanation
Gauss proved that a regular n-gon is constructible if and only if n is a power of 2 multiplied by distinct Fermat primes. For example, 17, 34, and 60 are constructible, but 7, 9, and 100 are not.
- A
- 13
What digits can a perfect square never end in?
- A
2, 3, 7, 8
- B
0, 2, 4, 6, 8
- C
0, 1, 4, 5, 6, 9
- D
1, 3, 5, 7
Correct answer
A2, 3, 7, 8
Explanation
No perfect square ends in 2, 3, 7, or 8. This is because the last digit of a square depends only on the last digit of the number being squared, and squaring digits 0-9 never yields those endings.
- A
- 14
What is the sum of the first n odd positive integers?
- A
2n-1
- B
n^2 - 1
- C
n^2
- D
n(n+1)
Correct answer
Cn^2
Explanation
The sum of the first n odd numbers (1+3+5+...+(2n-1)) equals n^2. This can be visualized geometrically by arranging dots in L-shapes to form a square.
- A
- 15
If n is an odd integer, then n^2 mod 8 is:
- A
1
- B
5
- C
3
- D
0
Correct answer
A1
Explanation
If n = 2k+1, then n^2 = 4k(k+1)+1. Since k(k+1) is even, 4k(k+1) is divisible by 8, so n^2 ≡ 1 mod 8.
- A
- 16
How are all primitive Pythagorean triples (a,b,c) with a odd parameterized?
- A
a = x^2 + y^2, b = 2xy, c = x^2 - y^2
- B
a = 2xy, b = x^2 - y^2, c = x^2 + y^2
- C
a = x^2 - y^2, b = x^2 + y^2, c = 2xy
- D
a = x^2 - y^2, b = 2xy, c = x^2 + y^2 for coprime x,y of opposite parity
Correct answer
Da = x^2 - y^2, b = 2xy, c = x^2 + y^2 for coprime x,y of opposite parity
Explanation
The standard formula for primitive triples with a odd is: a = x^2 - y^2, b = 2xy, c = x^2 + y^2, where x > y, gcd(x,y)=1, and x and y have opposite parity.
- A
- 17
Which prime numbers can be expressed as a sum of two squares?
- A
Primes of the form 4n+1
- B
Primes of the form 4n+3
- C
All primes
- D
Only the prime 2
Correct answer
APrimes of the form 4n+1
Explanation
Fermat conjectured and Euler proved that a prime p can be written as a sum of two squares if and only if p = 2 or p ≡ 1 mod 4. For example, 5 = 1^2+2^2, 13 = 2^2+3^2.
- A
- 18
What does Fermat's Last Theorem state?
- A
There are no positive integer solutions to a^2 + b^2 = c^2
- B
There are no positive integer solutions to a^n + b^n = c^n for n > 2
- C
All primes can be expressed as a difference of two squares
- D
There are infinitely many solutions to a^3 + b^3 = c^3
Correct answer
BThere are no positive integer solutions to a^n + b^n = c^n for n > 2
Explanation
Fermat's Last Theorem states that no three positive integers a, b, c satisfy a^n + b^n = c^n for any integer n > 2. It was proved by Andrew Wiles in 1995.
- A
- 19
In modular arithmetic modulo 12, what is 9 + 6 equal to?
- A
12
- B
3
- C
6
- D
15
Correct answer
B3
Explanation
On a 12-hour clock, 9 o'clock plus 6 hours is 3 o'clock. So 9 + 6 ≡ 3 mod 12.
- A
- 20
In Charles Dodgson's method for finding the day of the week, which four numbers are added modulo 7?
- A
Year, month, day, and hour
- B
Century number, year number, month number, day number
- C
Month, day, and two separate year numbers
- D
Century, decade, year, and day
Correct answer
BCentury number, year number, month number, day number
Explanation
Carroll's method uses four numbers: century number, year number, month number (from a table), and day number. These are summed and taken modulo 7 to get the day of the week.
- A
- 21
How often does the cycle of days of the week repeat in the Gregorian calendar?
- A
Every 4 years
- B
Every 100 years
- C
Every 28 years
- D
Every 400 years
Correct answer
CEvery 28 years
Explanation
Because 28 years contain 365×28 + 7 leap days = 10227 days, which is divisible by 7, the day-of-week pattern repeats every 28 years.
- A
- 22
State Fermat's little theorem as given in the lecture.
- A
For any integer a and prime p, a^(p-1) ≡ 1 mod p
- B
For any integer a and prime p, a^p ≡ 1 mod p
- C
For any integer a and prime p, a^p ≡ a mod p
- D
For any integer a and prime p, a ≡ 1 mod p
Correct answer
CFor any integer a and prime p, a^p ≡ a mod p
Explanation
The lecture presents Fermat's little theorem as: for any whole number a and prime p, a^p - a is divisible by p, i.e., a^p ≡ a mod p.
- A
- 23
How does the necklace proof demonstrate Fermat's little theorem?
- A
By counting the number of ways to arrange beads in a line
- B
By using the pigeonhole principle
- C
By showing that a^p - a is always even
- D
By counting the number of distinct necklaces with p beads and a colors, which must be an integer, leading to (a^p - a)/p being an integer
Correct answer
DBy counting the number of distinct necklaces with p beads and a colors, which must be an integer, leading to (a^p - a)/p being an integer
Explanation
The necklace proof counts the number of strings of p beads with a colors, subtracts the a monochromatic strings, and divides by p (since rotations are considered identical). This count is an integer, so a^p - a is divisible by p.
- A
- 24
For a standard 52-card deck, how many perfect riffle shuffles are needed to return to the original order?
- A
20
- B
8
- C
26
- D
52
Correct answer
D52
Explanation
Using Fermat's little theorem with p=53 (since the deck has 52 cards plus a 'position' for the card that moves), 2^52 ≡ 1 mod 53, so after 52 shuffles, each card returns to its original position.
- A
- 25
For a 54-card deck (with two jokers), how many shuffles are needed?
- A
20
- B
10
- C
54
- D
27
Correct answer
A20
Explanation
For 54 cards, the modulus is 55. Using the Chinese Remainder Theorem and Fermat's theorem for mod 5 and mod 11, we find 2^20 ≡ 1 mod 55, and no smaller exponent works, so 20 shuffles are required.
- A
- 26
What is Euler's totient function φ(n)?
- A
The sum of all positive divisors of n
- B
The smallest positive integer k such that a^k ≡ 1 mod n for all a coprime to n
- C
The number of prime factors of n
- D
The number of integers between 1 and n that are coprime to n
Correct answer
DThe number of integers between 1 and n that are coprime to n
Explanation
φ(n) counts positive integers ≤ n that have no common factors with n. For example, φ(10)=4 because 1,3,7,9 are coprime to 10.
- A
- 27
If p and q are distinct primes, what is φ(pq)?
- A
p+q-1
- B
p+q
- C
pq - 1
- D
(p-1)(q-1)
Correct answer
D(p-1)(q-1)
Explanation
φ(pq) = (p-1)(q-1) because among the numbers 1 to pq, only those that are multiples of p or q are not coprime. There are p multiples of q and q multiples of p, but pq is counted twice, so φ(pq) = pq - p - q + 1 = (p-1)(q-1).
- A
- 28
State Euler's theorem.
- A
If a and n are coprime, then a^n ≡ a mod n
- B
If gcd(a,n)=1, then a^(n-1) ≡ 1 mod n
- C
If gcd(a,n)=1, then a^φ(n) ≡ 1 mod n
- D
If a and n are coprime, then a^φ(n) ≡ a mod n
Correct answer
CIf gcd(a,n)=1, then a^φ(n) ≡ 1 mod n
Explanation
Euler's theorem generalizes Fermat's little theorem: for integers a and n with gcd(a,n)=1, a raised to the power φ(n) is congruent to 1 modulo n.
- A
- 29
In RSA cryptography, what constitutes the public key?
- A
The pair (N, e) where N is the product of two primes and e is chosen coprime to φ(N)
- B
The pair (e, d) where e and d are inverses modulo N
- C
The pair (p, q) of secret primes
- D
The pair (N, d) where d is the private key
Correct answer
AThe pair (N, e) where N is the product of two primes and e is chosen coprime to φ(N)
Explanation
In RSA, the public key consists of N (the product of two large primes) and e (an encryption exponent) that is publicly announced. The private key is d, which is kept secret.
- A
- 30
How is the private key d in RSA obtained?
- A
d is the product of p and q
- B
d is the inverse of e modulo N
- C
d is chosen such that e*d ≡ 1 mod φ(N)
- D
d is chosen such that e*d ≡ 1 mod N
Correct answer
Cd is chosen such that e*d ≡ 1 mod φ(N)
Explanation
The private exponent d must satisfy ed ≡ 1 mod φ(N) so that decryption works: (m^e)^d ≡ m mod N. This is done by computing the modular inverse of e modulo φ(N).
- A
- 31
What is the encryption formula in RSA?
- A
c = m^e mod N
- B
c = m × e mod N
- C
c = e^m mod N
- D
c = m^d mod N
Correct answer
Ac = m^e mod N
Explanation
To encrypt a message m (in numerical form), Alice computes c = m^e mod N, where (N, e) is Bob's public key. This c is the ciphertext sent to Bob.
- A
- 32
What is the decryption formula in RSA?
- A
m = c × d mod N
- B
m = c^d mod N
- C
m = c^e mod N
- D
m = d^c mod N
Correct answer
Bm = c^d mod N
Explanation
Bob decrypts the ciphertext c by computing m = c^d mod N, where d is his private key. This recovers the original message m.
- A
- 33
What is the security of RSA based on?
- A
The difficulty of finding large prime numbers
- B
The difficulty of factoring large composite numbers into primes
- C
The difficulty of computing discrete logarithms
- D
The difficulty of solving linear Diophantine equations
Correct answer
BThe difficulty of factoring large composite numbers into primes
Explanation
RSA security relies on the practical impossibility of factoring the product N of two large primes. While multiplying primes is easy, factoring the product is computationally infeasible for sufficiently large numbers.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.