∑ZWMath CoursesSyllabusExercises
ES
ZWMath›Elementary number theory›Continued fractions and Diophantine equations›Sum of two squares›ZW-SUM-OF-TWO-SQUARES-004
Course menu
AreaNumber theoryCourseElementary number theoryTopicContinued fractions and Diophantine equations
Divisibility and factorization10
  • Bézout's identity
  • Extended Euclidean algorithm
  • Euclid's lemma
  • Fundamental theorem of arithmetic
  • Least common multiple
  • Infinitude of primes
  • Linear Diophantine equation
  • Greatest common divisor Discrete mathematics
  • Euclidean algorithm Discrete mathematics
  • Prime number Discrete mathematics
Congruences9
  • Complete residue system
  • Modular inverse
  • Linear congruence
  • Chinese remainder theorem
  • Fermat's little theorem
  • Euler's totient function
  • Euler's theorem
  • Wilson's theorem
  • Modular congruence Discrete mathematics
Orders and quadratic residues6
  • Multiplicative order
  • Primitive root
  • Quadratic residue
  • Legendre symbol
  • Euler's criterion
  • Law of quadratic reciprocity
Arithmetic functions5
  • Multiplicative arithmetic function
  • Divisor functions
  • Perfect number
  • Möbius function
  • Möbius inversion formula
Continued fractions and Diophantine equations4
  • Continued fraction
  • Convergent of a continued fraction
  • Pell's equation
  • Sum of two squares
Primes and cryptography3
  • RSA cryptosystem
  • Fermat primality test
  • Prime number theorem

Exercise · ZW-SUM-OF-TWO-SQUARES-004 · ★☆☆ Basic

What is the first prime of the form \(4k+1\)?

Choose one option.

Show answer
  • C. 5

← Back to the question

Explanation

The primes 3, 7, and 11 leave remainder 3 upon division by 4, while \(5\) leaves remainder 1.

Study Elementary number theory in ZWMath →

Review the concept: Sum of two squares

An integer \(n\) is a sum of two squares if it can be written as the sum of the squares of two integers.

\[n = x^{2} + y^{2}\]

More practice problems: sum of two squares

  • ZW-SUM-OF-TWO-SQUARES-001 According to Fermat's criterion, when is an odd prime p a sum of two squares?
  • ZW-SUM-OF-TWO-SQUARES-002 Which of these equalities is correct?
  • ZW-SUM-OF-TWO-SQUARES-003 Which of these numbers is NOT a sum of two squares?
  • ZW-SUM-OF-TWO-SQUARES-005 Is the number 2 a sum of two squares?
  • ZW-SUM-OF-TWO-SQUARES-006 Decide whether 37 is a sum of two squares using Fermat's criterion.
  • ZW-SUM-OF-TWO-SQUARES-007 Is 65 a sum of two squares?
  • ZW-SUM-OF-TWO-SQUARES-008 Is 63 a sum of two squares? (Recall that 63 = 3^2 · 7.)
  • ZW-SUM-OF-TWO-SQUARES-009 Let n = 2 · 5^2 · 11. Is n a sum of two squares?

← ZW-SUM-OF-TWO-SQUARES-003 ZW-SUM-OF-TWO-SQUARES-005 →

Practice

⏱Exam simulator10 random questions with a grade☰All exercises
◉Open on course✦Open on free study↗Open on the map

ZWMath · Math from definition to practice. Open the interactive map · Syllabus · All exercises

Author: ORCID iD 0009-0009-8641-3511

Privacy · About Speedrunz · Contact