Coprime or Not? – Interactive GCD Practice

Coprime or Not? – Interactive GCD Practice
Loading the math board and drawing, please wait…
2022-12-01 18:54
In collections Gemeinsame Teiler & ggT
① This interactive exercise presents random pairs of numbers and asks students to determine whether they are coprime (i.e., their greatest common divisor is 1). ② The core mathematical concepts include factors, multiples, greatest common divisor (GCD), and the definition of coprime numbers, forming a foundation in number theory. ③ Construction highlights: The GeoGebra applet uses commands such as Polygon, Midpoint, IsInRegion, Textfield, Shuffle, Element, Append, Remove, and Defined to build a dynamic interface, with ColorText objects providing visual feedback on answers. ④ It is designed for students in grades 5–6, suitable for classroom practice or homework, reinforcing the calculation of GCD and the concept of coprimality.

GeoGebra Commands & Parameters

  1. Polygon(Q1E1, Q1E2, 4) → Q1, q1_1, q1_2, q1_3, q1_4, Q1E3, Q1E4
  2. Polygon(Q2E1, Q2E2, 4) → Q2, q2_1, q2_2, q2_3, q2_4, Q2E3, Q2E4
  3. Polygon(Q3E1, Q3E2, 4) → Q3, q3_4, q3_1, q3_2, q3_3, Q3E3, Q3E4
  4. Polygon(Q4E1, Q4E2, 4) → Q4, q4_4, q4_2, q4_1, q4_3, Q4E3, Q4E4
  5. Midpoint(Corner[T1530, 1], Corner[T1530, 3]) → Pos1530
  6. IsInRegion(Pos1530, Q4) → Correct1530
  7. Midpoint(Corner[T1814, 1], Corner[T1814, 3]) → Pos1814
  8. IsInRegion(Pos1814, Q2) → Correct1814
  9. Midpoint(Corner[T1830, 1], Corner[T1830, 3]) → Pos1830
  10. IsInRegion(Pos1830, Q4) → Correct1830
  11. Midpoint(Corner[T612, 1], Corner[T612, 3]) → Pos612
  12. IsInRegion(Pos612, Q4) → Correct612
  13. Midpoint(Corner[T820, 1], Corner[T820, 3]) → Pos820
  14. IsInRegion(Pos820, Q3) → Correct820
  15. Midpoint(Corner[T1826, 1], Corner[T1826, 3]) → Pos1826
  16. IsInRegion(Pos1826, Q2) → Correct1826
  17. Midpoint(Corner[T530, 1], Corner[T530, 3]) → Pos530
  18. IsInRegion(Pos530, Q2) → Correct530
  19. Midpoint(Corner[T1215, 1], Corner[T1215, 3]) → Pos1215
  20. IsInRegion(Pos1215, Q2) → Correct1215
  21. Midpoint(Corner[T2628, 1], Corner[T2628, 3]) → Pos2628
  22. IsInRegion(Pos2628, Q2) → Correct2628
  23. Midpoint(Corner[T610, 1], Corner[T610, 3]) → Pos610
  24. IsInRegion(Pos610, Q2) → Correct610
  25. Midpoint(Corner[T914, 1], Corner[T914, 3]) → Pos914
  26. IsInRegion(Pos914, Q1) → Correct914
  27. Midpoint(Corner[T1727, 1], Corner[T1727, 3]) → Pos1727
  28. IsInRegion(Pos1727, Q1) → Correct1727
  29. Midpoint(Corner[T1219, 1], Corner[T1219, 3]) → Pos1219
  30. IsInRegion(Pos1219, Q1) → Correct1219
  31. Textfield(aInput) → InputBox1
  32. Textfield(bInput) → InputBox2
  33. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  34. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {0, 6, 1, 4, 4, 7, 3, 2, 2, 8, 0, 3, 4, 10, 0, 1, 9, 0, 8, 3, 1, 10, 8, 7, 2, 10, 10, 8, 2, 9, 6, 10, 7, 10, 5, 0, 4, 0, 7, 0, 1, 0, 3, 3, 3, 7, 0, 1, 0, 8, 7, 5, 7, 6, 2, 5, 8, 0, 6, 8, 1, 4, 10, 6, 5, 0, 1, 6, 3, 2, 8, 7, 7, 1, 0, 4, 4, 7, 5, 5, 8, 0, 2, 7, 3, 9, 9, 0, 5, 4, 7, 3, 6, 8, 10, 10, 8, 1, 4, 5}
  35. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  36. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {1, 4, 5, 7, 9, 0, 2, 5, 0, 8, 6, 1, 4, 10, 5, 1, 1, 9, 5, 9, 8, 3, 1, 1, 6, 7, 8, 9, 9, 2, 5, 3, 9, 3, 1, 4, 6, 4, 8, 10, 0, 0, 4, 9, 5, 0, 0, 7, 0, 1, 4, 10, 9, 10, 7, 6, 10, 1, 6, 4, 7, 8, 8, 2, 5, 5, 10, 1, 8, 8, 5, 7, 4, 4, 6, 10, 4, 10, 3, 0, 1, 5, 10, 9, 7, 8, 3, 9, 0, 3, 0, 10, 5, 4, 2, 8, 6, 5, 3, 0}
  37. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  38. Append(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayX
  39. Append(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayY
  40. Remove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeat
  41. Remove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeat
  42. Element(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeat
  43. Element(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeat
  44. Defined((aInput * bInput)) → fixed

AI Drawing Prompt Reference

An interactive practice screen shows two randomly generated integers in two input boxes at the top. Below them are four square answer zones representing the choices “coprime” and “not coprime”. When the student selects a zone, the app checks the midpoint of the answer text to see which zone it falls in, then displays colored feedback in a rectangle indicating correct or incorrect. Each new question pulls a fresh pair from a pre‑shuffled list of unique random numbers, so the same pair never repeats.
The prompt above was compiled from the original drawing commands and is for reference only.