ArticleslgStudy

science

Quadratic Frobenius test

Quadratic Frobenius test 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 Quadratic Frobenius test rather than just read about it. In short: The quadratic Frobenius test (QFT) is a probabilistic primality test to determine whether a number is a probable prime. It is named after Ferdinand Georg Frobenius.

Key takeaways

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

Reference excerpt

The quadratic Frobenius test (QFT) is a probabilistic primality test to determine whether a number is a probable prime. It is named after Ferdinand Georg Frobenius. The test uses the concepts of quadratic polynomials and the Frobenius automorphism. It should not be confused with the more general Frobenius test using a quadratic polynomial – the QFT restricts the polynomials allowed based on the input, and also has other conditions that must be met. A composite passing this test is a Frobenius pseudoprime, but the converse is not necessarily true.

Concept Grantham's stated goal when developing the algorithm was to provide a test that primes would always pass and composites would pass with a probability of less than 1/7710. The test was later extended by Damgård and Frandsen to a test called extended quadratic Frobenius test (EQFT).

Algorithm Let n be a positive integer such that n is odd, and let b and c be integers such that ( b 2 + 4 c n ) = − 1 {\displaystyle \left({\frac {b^{2}+4c}{n}}\right)=-1} and ( − c n ) = 1 {\displaystyle \left({\frac {-c}{n}}\right)=1} , where ( ⋅ ⋅ ) {\displaystyle \left({\frac {\cdot }{\cdot }}\right)} denotes the Jacobi symbol. Set B = 50000 {\displaystyle B=50000} . Then a QFT on n with parameters (b, c) works as follows:

(1) Test whether any of the primes less than or equal to min ( B , n ) {\displaystyle \min(B,{\sqrt {n}})} divides n. If yes, then stop: n is composite. (2) Test whether n ∈ Z {\displaystyle {\sqrt {n}}\in \mathbb {Z} } . If yes, then stop: n is composite. (3) Compute x n + 1 2 mod ( n , x 2 − b x − c ) {\displaystyle x^{n+1 \over 2}\,{\bmod {\,}}{\big (}n,x^{2}-bx-c)} . If x n + 1 2 ∉ Z / n Z {\displaystyle x^{n+1 \over 2}\notin \mathbb {Z} {\big /}n\mathbb {Z} } , then stop: n is composite. (4) Compute x n + 1 mod ( n , x 2 − b x − c ) {\displaystyle x^{n+1}\,{\bmod {\,}}{\big (}n,x^{2}-bx-c)} . If x n + 1 ≢ − c {\displaystyle x^{n+1}\not \equiv -c} , then stop: n is composite. (5) Let n 2 − 1 = 2 r s {\displaystyle n^{2}-1=2^{r}s} with s odd. If x s ≢ 1 mod ( n , x 2 − b x − c ) {\displaystyle x^{s}\not \equiv 1{\bmod {\,}}{\big (}n,x^{2}-bx-c)} , and x 2 j s ≢ − 1 mod ( n , x 2 − b x − c ) {\displaystyle x^{2^{j}s}\not \equiv -1{\bmod {\,}}{\big (}n,x^{2}-bx-c)} for all 0 ≤ j ≤ r − 2 {\displaystyle 0\leq j\leq r-2} , then stop: n is composite. If the QFT does not stop in steps (1)–(5), then n is a probable prime. (The notation A ≡ B mod ( n , f ( x ) ) {\displaystyle A\equiv B{\bmod {\,}}(n,\,f(x))} means that A − B = H ( x ) ⋅ n + K ( x ) ⋅ f ( x ) {\displaystyle A-B=H(x)\cdot n+K(x)\cdot f(x)} , where H and K are polynomials.)

See also Integers modulo n Multiplicative group of integers modulo n

References

Worked examples

Example 1 — a first encounter with Quadratic Frobenius test

Start with the simplest possible case. Write down what Quadratic Frobenius test 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 Quadratic Frobenius test 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 Quadratic Frobenius test 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 Quadratic Frobenius test

In research
Quadratic Frobenius test 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 Quadratic Frobenius test 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
Quadratic Frobenius test is common in secondary-school and first-year university syllabi. It links to neighbouring topics Primality tests, so understanding it makes those chapters shorter.
In everyday life
Look for Quadratic Frobenius test 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.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Quadratic Frobenius test” →

Affiliate

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

How to study Quadratic Frobenius test in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Quadratic Frobenius test 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 Quadratic Frobenius test out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Quadratic Frobenius test in simple terms?

The quadratic Frobenius test (QFT) is a probabilistic primality test to determine whether a number is a probable prime. It is named after Ferdinand Georg Frobenius.

Why does Quadratic Frobenius test 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 Quadratic Frobenius test?

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 Quadratic Frobenius test.

Tags

  • Primality tests

Keep exploring