1. Home
  2. Explore
  3. Mathematics
  4. Number Theory Introduction

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Number Theory Introduction

  • 47Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Introduction and Prime Numbers

What is number theory?

47 questions

  1. 1

    What is number theory?

    Model answer

    Number theory is the branch of mathematics primarily concerned with the positive integers (counting numbers) and their properties such as being odd, even, prime, or factors.

    Explanation

    This definition is stated at the beginning of the lecture: number theory deals with counting numbers and their properties like divisibility, primes, etc.

  2. 2

    Define a prime number.

    Model answer

    A prime number is a positive integer greater than 1 whose only positive divisors are 1 and itself.

    Explanation

    The lecture defines primes as numbers whose only factors are 1 and itself, with examples like 11, 13, 17, 19.

  3. 3

    Why is 1 not considered a prime number?

    Model answer

    To ensure unique factorization: if 1 were prime, the fundamental theorem of arithmetic would fail because numbers could be factored in multiple ways by including extra factors of 1.

    Explanation

    The lecture explains that taking 1 as a prime would allow writing 6 as 2×3 or 2×3×1×1..., losing uniqueness.

  4. 4

    State the fundamental theorem of arithmetic.

    Model answer

    Every integer greater than 1 can be written uniquely as a product of primes, up to the order of the factors.

    Explanation

    The lecture mentions that every number can be gotten by multiplying primes in only one way, e.g., 60 = 2×2×3×5.

  5. 5

    Explain Euclid's proof that there are infinitely many primes.

    Model answer

    Assume finite list of primes p1,...,pn. Consider N = p1×...×pn + 1. N is not divisible by any listed prime, so it must either be a new prime or have a prime factor not in the list, contradicting finiteness.

    Explanation

    The lecture presents Euclid's geometric proof in modern language, concluding that the list of primes is infinite.

  6. 6

    What does Dirichlet's theorem state about primes in arithmetic progressions?

    Model answer

    There are infinitely many primes of the form an + b for any integers a and b with gcd(a,b) = 1.

    Explanation

    The lecture mentions Dirichlet's 1837 result that includes primes of the form 4n+1 and 4n+3, and more generally an+b with coprime a,b.

  7. 7

    How can we prove there are infinitely many primes of the form 4n+3?

    Model answer

    Adapt Euclid's proof: assume finite list of such primes, multiply them all together, square the product, and add 2? Actually, the lecture says 'adapt Euclid's proof' but does not give details. The standard proof: consider N = 4(p1p2...pn) + 3, then N must have a prime factor of the form 4k+3 not in the list.

    Explanation

    The lecture claims the result and says it can be adapted from Euclid's proof, so the model answer provides the standard adaptation.

  8. 8

    What is a Mersenne number?

    Model answer

    A Mersenne number is a number of the form 2^n - 1, where n is a positive integer.

    Explanation

    The lecture defines Mersenne numbers as numbers one less than a power of two.

  9. 9

    Which Mersenne numbers are prime?

    Model answer

    Mersenne numbers are prime only when the exponent n is prime, but not all prime exponents yield primes; e.g., 2^11-1 = 2047 = 23×89 is composite.

    Explanation

    The lecture explains that if n is composite then 2^n-1 is composite, and gives example where n=11 prime but 2^11-1 is not prime.

  10. 10

    What is a perfect number?

    Model answer

    A perfect number is a positive integer equal to the sum of its proper positive divisors (excluding itself). Examples: 6 (1+2+3), 28 (1+2+4+7+14).

    Explanation

    The lecture defines perfect numbers and gives examples 6 and 28.

  11. 11

    State the Euclid-Euler theorem about even perfect numbers.

    Model answer

    Every even perfect number is of the form 2^{n-1}(2^n - 1) where 2^n - 1 is a Mersenne prime (and n is prime).

    Explanation

    The lecture says Euclid proved this form yields a perfect number when the Mersenne number is prime, and Euler proved that all even perfect numbers have this form.

  12. 12

    What is a Fermat number?

    Model answer

    A Fermat number is a number of the form 2^{2^n} + 1, where n is a nonnegative integer.

    Explanation

    The lecture defines Fermat numbers as 2^{2^n}+1, e.g., 3,5,17,257,65537.

  13. 13

    What did Euler discover about the Fermat number 2^{32}+1?

    Model answer

    Euler discovered that 2^{32}+1 is divisible by 641, so it is not prime.

    Explanation

    The lecture states Euler found that 2^32+1 can be evenly divided by 641.

  14. 14

    State Gauss's theorem on constructible regular polygons.

    Model answer

    A regular n-gon can be constructed with ruler and compass if and only if n is a power of 2 times a product of distinct Fermat primes.

    Explanation

    The lecture presents Gauss's result that constructible polygons correspond to powers of 2 multiplied by distinct Fermat primes.

  15. 15

    Why can a regular polygon with 100 sides not be constructed with ruler and compass?

    Model answer

    Because 100 = 2^2 × 5^2, and Gauss's theorem requires distinct Fermat primes (each at most once). The factor 5 appears twice, which is not allowed.

    Explanation

    The lecture gives 100 as an example: it contains 5 twice, so not constructible.

  16. 16

    What are the possible last digits of a perfect square?

    Model answer

    The last digit of a perfect square can only be 0, 1, 4, 5, 6, or 9; it cannot be 2, 3, 7, or 8.

    Explanation

    The lecture states that no perfect square ends in 2,3,7,8, and lists squares of 0-9 to illustrate.

  17. 17

    Prove that the sum of the first n odd numbers equals n^2.

    Model answer

    Geometric proof: arrange L-shaped figures of odd numbers of dots to form a square. Algebraic: sum_{k=1}^n (2k-1) = n^2.

    Explanation

    The lecture shows a geometric picture of L-shapes forming a square and mentions an easy arithmetic proof.

  18. 18

    Show that every perfect square is of the form 4k or 4k+1.

    Model answer

    Even numbers: n=2k => n^2=4k^2 (4k). Odd numbers: n=2k+1 => n^2=4k(k+1)+1, which is 4k+1.

    Explanation

    The lecture derives this by considering even and odd n, concluding no square is 4k+2 or 4k+3.

  19. 19

    Why can a number consisting entirely of ones (like 111) never be a perfect square?

    Model answer

    All such numbers are of the form 4k+3 (since 11=4×2+3, 111=4×27+3, etc.), and no perfect square can be 4k+3.

    Explanation

    The lecture states that repunits are 3 more than a multiple of 4, which is forbidden for squares.

  20. 20

    Prove that the square of an odd integer is 1 modulo 8.

    Model answer

    Let odd n = 2k+1. Then n^2 = 4k(k+1)+1. Since k(k+1) is even, n^2 = 8m+1 for some integer m.

    Explanation

    The lecture gives this proof, noting the product of consecutive integers is even.

  21. 21

    State the Pythagorean theorem.

    Model answer

    In a right triangle with legs a and b and hypotenuse c, we have a^2 + b^2 = c^2.

    Explanation

    The lecture states the theorem as a^2+b^2=c^2.

  22. 22

    Give an example of a primitive Pythagorean triple.

    Model answer

    (3,4,5) is a primitive triple because 3^2+4^2=5^2 and gcd(3,4,5)=1.

    Explanation

    The lecture lists (3,4,5) as a primitive example.

  23. 23

    Write the general formulas for generating all primitive Pythagorean triples.

    Model answer

    For integers x>y, gcd(x,y)=1, and one of x,y even, the triple is: a = x^2 - y^2, b = 2xy, c = x^2 + y^2.

    Explanation

    The lecture presents these formulas with the conditions stated.

  24. 24

    Find all right triangles with side length 29.

    Model answer

    Two triangles: (20,21,29) from x=5,y=2 (c=29), and (29,420,421) from x=15,y=14 (a=29). Both are primitive.

    Explanation

    The lecture solves this by considering 29 as c or a in the formulas.

  25. 25

    Which prime numbers can be written as the sum of two squares?

    Model answer

    A prime p can be written as a sum of two squares if and only if p = 2 or p ≡ 1 mod 4. Moreover, the representation is unique (up to order).

    Explanation

    The lecture states Fermat's theorem: every prime of form 4n+1 can be written uniquely as sum of two squares; primes 4n+3 cannot.

  26. 26

    State Fermat's last theorem.

    Model answer

    There are no positive integers a, b, c such that a^n + b^n = c^n for any integer n > 2.

    Explanation

    The lecture defines Fermat's Last Theorem and says it was proved by Andrew Wiles in 1995.

  27. 27

    Explain Fermat's method of infinite descent for the case n=4.

    Model answer

    Assume a solution to x^4 + y^4 = z^4. Then show it leads to a smaller solution, and by repeating, you get an infinite descending sequence of positive integers, which is impossible. Hence no solution exists.

    Explanation

    The lecture describes the method for fourth powers: if a solution exists, it gives a smaller one, leading to contradiction.

  28. 28

    Define modular arithmetic: what does a ≡ b (mod n) mean?

    Model answer

    It means that a and b leave the same remainder when divided by n, i.e., n divides a - b.

    Explanation

    The lecture explains that a ≡ b mod n if a and b have the same remainder upon division by n.

  29. 29

    Compute 9+6 mod 12.

    Model answer

    9+6=15, and 15 mod 12 = 3, so 9+6 ≡ 3 (mod 12).

    Explanation

    The lecture gives this as an example: 9 o'clock plus 6 hours gives 3 o'clock.

  30. 30

    Describe Charles Dodgson's (Lewis Carroll's) method for finding the day of the week.

    Model answer

    The method uses four numbers: century number, year number, month number, and day number, all computed modulo 7. The sum mod 7 gives the day of the week (0=Sunday, ..., 6=Saturday).

    Explanation

    The lecture explains Carroll's method with an example for 28 Sep 2020 yielding Monday.

  31. 31

    What are the four numbers added in Carroll's method?

    Model answer

    Century number, year number, month number, and day number.

    Explanation

    The lecture lists these four components.

  32. 32

    Find the day of the week for 28 September 2020 using Carroll's method.

    Model answer

    Century=6, year=11, month=5, day=28; sum=50; 50 mod 7 = 1, which corresponds to Monday.

    Explanation

    The lecture works this example step-by-step.

  33. 33

    In which years of the 21st century does February have five Sundays?

    Model answer

    2004, 2032, 2060, 2088. These are leap years starting on a Thursday (Feb 1 being Sunday) and repeat every 28 years.

    Explanation

    The lecture calculates the pattern and gives these years.

  34. 34

    State Fermat's little theorem.

    Model answer

    For any integer a and prime p, a^p ≡ a (mod p). Equivalently, if p does not divide a, then a^{p-1} ≡ 1 (mod p).

    Explanation

    The lecture gives both forms of the theorem.

  35. 35

    Give a combinatorial proof of Fermat's little theorem using necklaces.

    Model answer

    Count necklaces with p beads and a colors, using at least two colors. Total strings: a^p - a (excluding monochromatic). Each necklace has p rotations, so number of necklaces is (a^p - a)/p, which must be an integer, so p divides a^p - a.

    Explanation

    The lecture presents this necklace counting proof.

  36. 36

    How many riffle shuffles are needed to restore a deck of 52 cards to its original order?

    Model answer

    52 shuffles. Because after shuffles, card in position x moves to 2^n x mod 53. For restoration, 2^n ≡ 1 mod 53. Fermat's little theorem gives 2^52 ≡ 1 mod 53, and checking divisors of 52 shows no smaller exponent works.

    Explanation

    The lecture explains the card shuffling application with mod 53 (since 52+1=53 prime).

  37. 37

    How many shuffles for a 54-card deck (with two jokers)?

    Model answer

    20 shuffles. Here N+1=55=5×11. Fermat's theorem gives 2^4≡1 mod5 and 2^10≡1 mod11, so 2^20≡1 mod55. The smallest exponent is 20.

    Explanation

    The lecture solves this case using Chinese remainder theorem and Fermat's theorem on each prime factor.

  38. 38

    State Euler's theorem.

    Model answer

    If a and n are coprime positive integers, then a^{φ(n)} ≡ 1 (mod n), where φ(n) is Euler's totient function.

    Explanation

    The lecture presents Euler's generalization of Fermat's theorem.

  39. 39

    Define Euler's totient function φ(n).

    Model answer

    φ(n) is the number of integers between 1 and n (inclusive) that are coprime to n.

    Explanation

    The lecture defines φ(n) as counting numbers up to n that have no factors in common with n.

  40. 40

    Compute φ(10) and φ(12).

    Model answer

    φ(10)=4 (numbers 1,3,7,9); φ(12)=4 (numbers 1,5,7,11).

    Explanation

    The lecture calculates these examples.

  41. 41

    What is φ(p) for a prime p?

    Model answer

    φ(p) = p-1.

    Explanation

    The lecture states that for prime p, φ(p)=p-1 because only p itself is not coprime.

  42. 42

    What is φ(pq) for distinct primes p and q?

    Model answer

    φ(pq) = (p-1)(q-1).

    Explanation

    The lecture gives this formula and uses it for RSA example.

  43. 43

    How does Bob generate his public and private keys in RSA?

    Model answer

    Bob selects two large primes p and q, computes N=pq and φ(N)=(p-1)(q-1). He chooses e coprime to φ(N) and computes d such that ed ≡ 1 mod φ(N). The public key is (N,e); the private key is d.

    Explanation

    The lecture explains the key generation steps with example p=29,q=37,N=1073,φ=1008,e=11,d=275.

  44. 44

    How does Alice encrypt a message using Bob's public key?

    Model answer

    Alice converts the message to a number M (smaller than N), then computes C = M^e mod N, and sends C to Bob.

    Explanation

    The lecture describes encryption as M^e mod N.

  45. 45

    How does Bob decrypt the ciphertext C?

    Model answer

    Bob computes C^d mod N, which recovers the original message M.

    Explanation

    The lecture states decrypting as E to the power d mod N.

  46. 46

    Why is RSA considered secure?

    Model answer

    Security relies on the practical difficulty of factoring the large composite N into its prime factors p and q. While multiplying large primes is easy, factoring N is extremely hard.

    Explanation

    The lecture mentions that multiplying is a one-way process, like squeezing toothpaste; factorization is not easy.

  47. 47

    What role does Euler's theorem play in RSA decryption?

    Model answer

    Euler's theorem ensures that (M^e)^d ≡ M^{ed} ≡ M (mod N) because ed ≡ 1 mod φ(N) and M^{φ(N)}≡1 mod N, provided M and N are coprime. This guarantees correct decryption.

    Explanation

    The lecture states that Euler's theorem is used in the decryption step to recover the message.

1 of 47
Question 1 of 47

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent