Course Test · University: upper level

Number theory: independent answers

Each answer here was worked out by hand, without RatMath, before the RatMath code was written. Where the arithmetic is long, the working says how it was checked.

  1. 1.Bézout coefficients
    Find gcd⁡(252,198)\gcd(252, 198) and integers x,yx, y with 252x+198y=gcd⁡(252,198)252x + 198y = \gcd(252, 198).
    Answer
    252=1⋅198+54252 = 1\cdot198 + 54, 198=3⋅54+36198 = 3\cdot54 + 36, 54=1⋅36+1854 = 1\cdot36 + 18, 36=2⋅1836 = 2\cdot18. So the gcd is 18, and back-substituting gives 18=4⋅252−5⋅19818 = 4\cdot252 - 5\cdot198.
  2. 2.Linear congruence
    Solve 17x≡3(mod29)17x \equiv 3 \pmod{29}.
    Answer
    17⋅12=204=7⋅29+117\cdot12 = 204 = 7\cdot29 + 1, so 17−1≡1217^{-1} \equiv 12 and x≡36≡7(mod29)x \equiv 36 \equiv 7 \pmod{29}.
  3. 3.Chinese remainder theorem
    Find the least positive xx with x≡2(mod3)x \equiv 2 \pmod 3, x≡3(mod5)x \equiv 3 \pmod 5, x≡2(mod7)x \equiv 2 \pmod 7.
    Answer
    x≡2(mod21)x \equiv 2 \pmod{21} from the first and third; 2,23,44,…2, 23, 44, \dots: 23 is 3 mod 53 \bmod 5. So x=23x = 23 (mod 105).
  4. 4.Euler's totient
    Compute φ(360)\varphi(360).
    Answer
    360=23⋅32⋅5360 = 2^3\cdot3^2\cdot5: φ=360⋅12⋅23⋅45=96\varphi = 360\cdot\tfrac12\cdot\tfrac23\cdot\tfrac45 = 96.
  5. 5.Fermat's little theorem
    Find 3100 mod 73^{100} \bmod 7.
    Answer
    36≡13^6 \equiv 1, 100=6⋅16+4100 = 6\cdot16 + 4, so 3100≡34=81≡43^{100} \equiv 3^4 = 81 \equiv 4.
  6. 6.Divisor functions
    Compute σ(28)\sigma(28) and τ(28)\tau(28). Is 28 perfect?
    Answer
    Divisors 1, 2, 4, 7, 14, 28: τ=6\tau = 6, σ=56=2⋅28\sigma = 56 = 2\cdot28, so 28 is perfect.
  7. 7.Möbius function
    Compute μ(30)\mu(30) and μ(12)\mu(12).
    Answer
    30=2⋅3⋅530 = 2\cdot3\cdot5 has three distinct primes: μ=−1\mu = -1. 1212 has a square factor: μ=0\mu = 0.
  8. 8.Legendre symbol
    Evaluate (511)\left(\frac{5}{11}\right).
    Answer
    By reciprocity (511)=(115)=(15)=1\left(\frac5{11}\right) = \left(\frac{11}5\right) = \left(\frac15\right) = 1. (Indeed 42=16≡54^2 = 16 \equiv 5.)
  9. 9.Jacobi symbol
    Evaluate the Jacobi symbol (215)\left(\frac{2}{15}\right). Is 2 a square mod 15?
    Answer
    (23)(25)=(−1)(−1)=1\left(\frac23\right)\left(\frac25\right) = (-1)(-1) = 1, but 2 is not a square mod 3, so it is not a square mod 15: the Jacobi symbol 1 does not imply a square.
  10. 10.Square roots mod p
    Solve x2≡10(mod13)x^2 \equiv 10 \pmod{13}.
    Answer
    62=36=2⋅13+106^2 = 36 = 2\cdot13 + 10, so x≡±6x \equiv \pm6, that is 6 and 7.
  11. 11.Order of an element
    Find the multiplicative order of 2 modulo 11.
    Answer
    The order divides 10. 22=42^2 = 4, 25=32≡10≢12^5 = 32 \equiv 10 \not\equiv 1, so the order is 10.
  12. 12.Primitive roots
    Find the least primitive root modulo 13.
    Answer
    24=16≡32^4 = 16 \equiv 3, 26=64≡12≡−12^6 = 64 \equiv 12 \equiv -1, so 212/2,212/3≠12^{12/2}, 2^{12/3} \ne 1: 2 has order 12 and is a primitive root.
  13. 13.Fermat numbers
    Factor F5=232+1F_5 = 2^{32} + 1.
    Answer
    Euler: 232+1=641⋅67004172^{32} + 1 = 641 \cdot 6700417 (both prime).
  14. 14.Carmichael numbers
    Show 561 is composite but a560≡1(mod561)a^{560} \equiv 1 \pmod{561} for every aa coprime to 561.
    Answer
    561=3⋅11⋅17561 = 3\cdot11\cdot17, and 2,10,162, 10, 16 all divide 560 (Korselt), so the Carmichael function λ(561)=lcm⁡(2,10,16)=80\lambda(561) = \operatorname{lcm}(2, 10, 16) = 80 divides 560.
  15. 15.Sums of two squares
    Write 65 as a sum of two squares in every way (a≥b>0a \ge b > 0).
    Answer
    65=5⋅13=(22+12)(32+22)65 = 5\cdot13 = (2^2+1^2)(3^2+2^2): 65=82+12=72+4265 = 8^2 + 1^2 = 7^2 + 4^2.
  16. 16.Linear Diophantine equations
    Find all solutions of 3x+5y=473x + 5y = 47 in non-negative integers.
    Answer
    47−5y≡0(mod3)47 - 5y \equiv 0 \pmod 3 needs y≡1(mod3)y \equiv 1 \pmod 3: y=1,4,7y = 1, 4, 7 give x=14,9,4x = 14, 9, 4.
  17. 17.Frobenius number
    Chicken nuggets come in boxes of 6, 9 and 20. What is the largest number that cannot be bought exactly?
    Answer
    44 = 24 + 20, 45 = 5·9, 46 = 6 + 40, 47 = 27 + 20, 48 = 8·6, 49 = 9 + 40 are all possible, and any later number adds 6 to one of these. 43 is not possible (43, 23 and 3 are not sums of 6s and 9s). Answer: 43.
  18. 18.Continued fractions and Pell's equation
    Find the continued fraction of 13\sqrt{13}, and the smallest positive solution of x2−7y2=1x^2 - 7y^2 = 1.
    Answer
    13=[3;1,1,1,1,6‾]\sqrt{13} = [3; \overline{1, 1, 1, 1, 6}]. For D=7D = 7: 7=[2;1,1,1,4‾]\sqrt7 = [2; \overline{1,1,1,4}], convergent 8/38/3: 64−63=164 - 63 = 1, so (8,3)(8, 3).
  19. 19.Legendre's formula
    What is the largest power of 2 dividing 100!100!?
    Answer
    ⌊100/2⌋+⌊100/4⌋+⋯=50+25+12+6+3+1=97\lfloor 100/2\rfloor + \lfloor100/4\rfloor + \dots = 50 + 25 + 12 + 6 + 3 + 1 = 97.
  20. 20.Prime counting
    How many primes are below 1000?
    Answer
    π(1000)=168\pi(1000) = 168.