GCD and LCM Check-O-Mat

GCD and LCM Check-O-Mat
Loading the math board and drawing, please wait…
2023-01-26 18:33
This example demonstrates an interactive mathematical tool for exploring the properties of greatest common divisor (GCD, ggT) and least common multiple (LCM, kgV), particularly through visual graphics and user input to check number theory patterns. Core math concepts include GCD, LCM, coprime numbers, and fundamental relationships such as GCD and LCM with the number 1. In terms of construction, from the summary, it utilizes GeoGebra commands like Textfield for text input, Polygon for drawing polygonal visualizations, Shuffle for randomization, Element and Append for list operations, CountIf for conditional counting, If and Sort for logic and sorting; objects include sequences like s1_{2}, s1_{1}, CC, BB, and color elements such as Blue, Green for differentiation. It is suitable for grades 5-6 students to reinforce number theory skills, supporting open-ended inquiries and classroom interactions.

GeoGebra Commands & Parameters

  1. Textfield(aInput) → InputBox1
  2. Textfield(bInput) → InputBox2
  3. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  4. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {1, 8, 8, 7, 4, 7, 6, 3, 0, 8, 1, 0, 8, 5, 1, 5, 1, 9, 2, 8, 6, 6, 6, 7, 3, 3, 9, 3, 7, 4, 3, 0, 2, 0, 2, 3, 3, 1, 2, 3, 2, 8, 1, 5, 5, 10, 3, 3, 7, 0, 10, 6, 3, 4, 1, 8, 4, 3, 6, 6, 7, 10, 9, 7, 0, 5, 6, 6, 1, 7, 10, 8, 7, 7, 7, 0, 6, 0, 2, 0, 10, 8, 10, 6, 0, 3, 10, 4, 10, 6, 2, 6, 3, 3, 9, 4, 10, 4, 5, 0}
  5. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  6. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {2, 10, 8, 2, 2, 4, 6, 9, 4, 2, 10, 1, 3, 7, 10, 10, 4, 9, 1, 6, 5, 2, 7, 4, 1, 8, 4, 7, 7, 10, 8, 8, 0, 8, 0, 2, 3, 6, 10, 7, 7, 8, 10, 8, 0, 1, 0, 7, 2, 7, 7, 1, 2, 6, 10, 7, 8, 8, 6, 1, 4, 1, 7, 5, 10, 7, 0, 3, 1, 1, 3, 0, 3, 4, 9, 7, 9, 1, 5, 5, 1, 9, 1, 1, 4, 0, 3, 9, 4, 8, 10, 1, 5, 3, 2, 4, 1, 6, 1, 3}
  7. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  8. Append(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayX
  9. Append(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayY
  10. Remove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeat
  11. Remove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeat
  12. Element(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeat
  13. Element(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeat
  14. Polygon(O, P, R, Q) → v1, o, p, r, q
  15. CountIf(x ≠ 0, listAllNumbersSelected) → numOfNumbers
  16. If(s1 ≟ 3.5 ∧ s1_{1} ≟ 3.5 ∧ (¬(s1 ≟ 3.5 ∧ s1_{1} ≟ 3.5 ∧ s1_{2} ≟ 3.5)), LCM[{AA, BB}], LCM[{AA, BB, CC}]) → kgV
  17. If(s1 ≟ 3.5 ∧ s1_{1} ≟ 3.5 ∧ (¬(s1 ≟ 3.5 ∧ s1_{1} ≟ 3.5 ∧ s1_{2} ≟ 3.5)), GCD[{AA, BB}], GCD[{AA, BB, CC}]) → ggT
  18. Sort(allNumbers) → allNumbersSorted
  19. Remove(allNumbersSorted, {Max[allNumbersSorted]}) → allNumbersSortedWithoutHighestValue