GeoGebra Demo of GCD: Factor Lists and Common Divisors

GeoGebra Demo of GCD: Factor Lists and Common Divisors
Loading the math board and drawing, please wait…
2020-09-13 03:41
This example demonstrates how the greatest common divisor (gcd) arises by randomly selecting integers, generating their full divisor lists, and highlighting the common divisors between two numbers. The key concepts are divisibility, factorization into prime factors (via Factors where used), divisor sets (DivisorsList), and the relationship between common divisors and gcd. Construction emphasizes a workflow: RandomElement picks values to vary each round; DivisorsList produces divisor lists for n, n1, n2, n3 (and others); Factors supports the factor structure; Textfield and corner-placed text objects display the divisor sets and computed answers; buttons (p1botón1, p1botón2, p1botón3) drive repeat/submit-like interaction and update counters such as aciertos and fallos. Geometric/layout elements like Polygon and Corner are used to organize the interface and stepwise visualization. Suitable for middle-school number theory lessons on divisibility and gcd, and for interactive practice/self-check activities.

GeoGebra Commands & Parameters

  1. RandomElement(lista1) → n
  2. DivisorsList(n1) → divisoresn1
  3. Factors(n1) →
  4. DivisorsList(n2) → divisoresn2
  5. Factors(n2) →
  6. DivisorsList(n3) → divisoresn3
  7. Factors(n3) →
  8. DivisorsList(n4) → divisoresn4
  9. Factors(n4) →
  10. Textfield(p2c1) → p2CasillaDeEntrada1
  11. Textfield(p2c2) → p2CasillaDeEntrada2
  12. Textfield(p2c3) → p2CasillaDeEntrada3
  13. Textfield(p2c4) → p2CasillaDeEntrada4
  14. Textfield(p2c5) → p2CasillaDeEntrada5
  15. Textfield(p2c6) → p2CasillaDeEntrada6
  16. Textfield(p2c12) → p2CasillaDeEntrada12
  17. Textfield(p2c11) → p2CasillaDeEntrada11
  18. Textfield(p2c10) → p2CasillaDeEntrada10
  19. Textfield(p2c9) → p2CasillaDeEntrada9
  20. Textfield(p2c8) → p2CasillaDeEntrada8
  21. Textfield(p2c7) → p2CasillaDeEntrada7
  22. Corner(1) → A
  23. Corner(2) → B
  24. Corner(3) → C
  25. Corner(4) → D
  26. Polygon(A, B, E, F) → polígono1, a, b, e, f

AI Drawing Prompt Reference

This is a teaching demonstration graphic about the greatest common divisor (GCD). The graphic includes four randomly generated integers, each with corresponding divisor lists and prime factor decompositions. Text boxes display these divisor lists and computed results, points mark key points, and a polygon connects these points to form a visual structure. The construction order is to first randomly select integers, then generate divisor lists and prime factor decompositions, and finally use text boxes and points to connect the graphic to show relationships.
The prompt above was compiled from the original drawing commands and is for reference only.