ArticleslgStudy

science

Legendre symbol

Legendre symbol is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Legendre symbol rather than just read about it. In short: In number theory, the Legendre symbol is a function of a {\displaystyle a} and p {\displaystyle p} defined as ( a p ) = { 1 if a is a quadratic residue modulo p and a ≢ 0 ( mod p ) , − 1 if a is a quadratic nonresidue modulo p , 0 if a ≡ 0 ( mod p ) . {\displaystyle \left({\frac {a}{p}}\right)={\begin{cases}1&{\text{if }}a{\text{ is a quadratic residue modulo }}p{\text{ and }}a\not \equiv 0{\pmod {p}},\\-1&{\text{if…

Key takeaways

  • Legendre symbol belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Legendre symbol to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Legendre symbol from memory before moving on to harder problems.

Reference excerpt

In number theory, the Legendre symbol is a function of a {\displaystyle a} and p {\displaystyle p} defined as

( a p ) = { 1 if a is a quadratic residue modulo p and a ≢ 0 ( mod p ) , − 1 if a is a quadratic nonresidue modulo p , 0 if a ≡ 0 ( mod p ) . {\displaystyle \left({\frac {a}{p}}\right)={\begin{cases}1&{\text{if }}a{\text{ is a quadratic residue modulo }}p{\text{ and }}a\not \equiv 0{\pmod {p}},\\-1&{\text{if }}a{\text{ is a quadratic nonresidue modulo }}p,\\0&{\text{if }}a\equiv 0{\pmod {p}}.\end{cases}}}

where p {\displaystyle p} is an odd prime number and a {\displaystyle a} is a positive integer that may or may not be a quadratic residue mod p. The Legendre symbol is a multiplicative function. The Legendre symbol was introduced by Adrien-Marie Legendre in 1797 or 1798 in the course of his attempts at proving the law of quadratic reciprocity. Generalizations of the symbol include the Jacobi symbol and Dirichlet characters of higher order. The notational convenience of the Legendre symbol inspired introduction of several other "symbols" used in algebraic number theory, such as the Hilbert symbol and the Artin symbol.

Definition Legendre's original definition was by means of the explicit formula

( a p ) ≡ a p − 1 2 ( mod p ) and ( a p ) ∈ { − 1 , 0 , 1 } . {\displaystyle \left({\frac {a}{p}}\right)\equiv a^{\frac {p-1}{2}}{\pmod {p}}\quad {\text{ and }}\quad \left({\frac {a}{p}}\right)\in \{-1,0,1\}.}

By Euler's criterion, which had been discovered earlier and was known to Legendre, these two definitions are equivalent. Thus Legendre's contribution lay in introducing a convenient notation that recorded whether a is a residue or a non-residue modulo p. Gauss' original notation used aRp for ( a p ) = 1 {\displaystyle ({\tfrac {a}{p}})=1} and aNp for ( a p ) = − 1 {\displaystyle ({\tfrac {a}{p}})=-1} . For typographical convenience, the Legendre symbol is sometimes written as (a | p) or (a/p). For fixed p, the sequence ( 0 p ) , ( 1 p ) , ( 2 p ) , … {\displaystyle ({\tfrac {0}{p}}),({\tfrac {1}{p}}),({\tfrac {2}{p}}),\ldots } is periodic with period p and is sometimes called the Legendre sequence (see above table).

Properties of the Legendre symbol There are a number of useful properties of the Legendre symbol which, together with the law of quadratic reciprocity, can be used to compute it efficiently.

Given a generator g ∈ F p ∗ {\displaystyle g\in \mathbb {F} _{p}^{*}} , if x = g r {\displaystyle x=g^{r}} , then x {\displaystyle x} is a quadratic residue if and only if r {\displaystyle r} is even. This shows that half of the elements in F p ∗ {\displaystyle \mathbb {F} _{p}^{*}} are quadratic residues. If p ≡ 3 mod 4 {\displaystyle p\equiv 3{\text{ mod }}4} then the fact that

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Legendre symbol

Start with the simplest possible case. Write down what Legendre symbol claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Legendre symbol before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Legendre symbol ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Legendre symbol

In research
Legendre symbol appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Legendre symbol in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Legendre symbol is common in secondary-school and first-year university syllabi. It links to neighbouring topics Modular arithmetic, Quadratic residue, so understanding it makes those chapters shorter.
In everyday life
Look for Legendre symbol outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Legendre symbol in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Legendre symbol means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Legendre symbol out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Legendre symbol in simple terms?

In number theory, the Legendre symbol is a function of a {\displaystyle a} and p {\displaystyle p} defined as ( a p ) = { 1 if a is a quadratic residue modulo p and a ≢ 0 ( mod p ) , − 1 if a is a quadratic nonresidue modulo p , 0 if a ≡ 0 ( mod p ) . {\displaystyle \left({\frac {a}{p}}\right)={\be…

Why does Legendre symbol matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Legendre symbol?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Legendre symbol.

Tags

  • Modular arithmetic
  • Quadratic residue

Keep exploring