Finding GCD Using Prime Factorization

Finding GCD Using Prime Factorization
Loading the math board and drawing, please wait…
2022-12-01 18:55
In collections Gemeinsame Teiler & ggT
This example demonstrates how to determine the greatest common divisor (GCD) of two or more natural numbers by using prime factorization. Key mathematical concepts include factorization, prime factors, and the definition and calculation of GCD. The GeoGebra construction employs the GCD command, text fields, shuffle controls, and objects such as sol1‑sol8 and Text1‑Text5 to interactively show the decomposition process. It is designed for upper primary students (grades 5‑6) to develop number sense and factor recognition.

GeoGebra Commands & Parameters

  1. GCD(36, 60) → sol1
  2. GCD(84, 168) → sol2
  3. Textfield(aInput) → InputBox1
  4. Textfield(bInput) → InputBox2
  5. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  6. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {9, 5, 4, 8, 6, 3, 0, 7, 3, 2, 2, 6, 0, 2, 6, 7, 5, 4, 8, 5, 1, 7, 1, 7, 9, 4, 1, 2, 0, 8, 6, 10, 4, 9, 1, 5, 0, 9, 5, 0, 6, 10, 6, 6, 5, 9, 2, 8, 4, 9, 6, 8, 5, 5, 8, 8, 1, 3, 0, 1, 1, 4, 3, 7, 1, 9, 4, 0, 0, 1, 0, 6, 0, 1, 6, 3, 1, 4, 4, 4, 8, 8, 3, 7, 5, 0, 7, 8, 10, 6, 9, 4, 9, 2, 6, 4, 9, 0, 5, 7}
  7. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  8. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {2, 3, 9, 7, 9, 5, 5, 8, 3, 2, 10, 3, 0, 8, 8, 0, 9, 6, 0, 5, 2, 4, 2, 9, 8, 9, 1, 1, 0, 0, 1, 6, 8, 10, 1, 2, 4, 10, 5, 1, 7, 2, 9, 2, 6, 0, 7, 5, 1, 4, 10, 8, 1, 7, 5, 6, 0, 4, 7, 0, 3, 0, 0, 4, 2, 1, 6, 10, 4, 10, 6, 8, 5, 5, 2, 5, 10, 4, 8, 7, 9, 0, 6, 10, 2, 6, 10, 9, 9, 1, 9, 0, 4, 3, 2, 2, 3, 9, 2, 8}
  9. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  10. Append(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayX
  11. Append(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayY
  12. Remove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeat
  13. Remove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeat
  14. Element(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeat
  15. Element(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeat
  16. SpeechBubbleRight(E, 7, 1) → Vieleck1

AI Drawing Prompt Reference

The graphic illustrates the calculation of the greatest common divisor (GCD) for two numbers. On the left, there are two input boxes for entering natural numbers. On the right, two GCD results are displayed: 36 and 84. Below, a rectangle contains a list of randomly generated numbers that change dynamically based on a slider and automatically remove duplicates. On the right, a speech bubble appears to prompt the user. The overall design is simple and suitable for helping elementary students understand the concept of GCD.
The prompt above was compiled from the original drawing commands and is for reference only.