Common Multiples of Two Numbers: LCM and Sequence-Based Visualization

Common Multiples of Two Numbers: LCM and Sequence-Based Visualization
Loading the math board and drawing, please wait…
2020-09-13 03:42
In collections Mat 1 ESO - IESO LA PAZ
This GeoGebra example demonstrates how to compute and visualize the set of common multiples of two integers while emphasizing the role of the least common multiple (LCM). The key mathematical ideas include LCM, the generation of multiples (common multiples as the intersection of multiple sets), and constructing data for visualization using sequences and lists. The construction is interactive: Textfield inputs (e.g., campoDeTexto1/2) allow users to change parameters n and m, after which LCM recalculates the least common multiple (via the LCM command) and Sequence generates the corresponding multiple lists (objects such as listac1/listat1 and listac2/listat2, plus listam1/listam2). Text objects (texto*, texto21/22, etc.) are used to label and present the computed values, while buttons (botón1/2) support running or refreshing the update. Suitable for middle-school to early high-school instruction on number theory and integer operations, and useful for interactive classroom demonstrations or student exploration.

GeoGebra Commands & Parameters

  1. Textfield(m) → campoDeTexto2
  2. Textfield(n) → campoDeTexto1
  3. LCM(n, m) → a
  4. Sequence(Sequence[Polygon[(i + 41, 40 - j), (i + 39, 40 - j), 4], i, 0, 10, 2], j, 1, 32, 2) → listac2
  5. Sequence(Sequence[Text[i + (6 * j), ((2 * i) + 37.5, 37.6 - (2 * j))], i, 1, 6], j, 0, 15) → listat2
  6. Sequence(Sequence[Polygon[(i + 2 + (3.9 * t), 40 - j), (i + (3.9 * t), 40 - j), 4], i, 0, 10, 2], j, 1, 32, 2) → listac1
  7. Sequence(Sequence[Text[i + (6 * j), ((2 * i) - 1.5 + (3.9 * t), 37.6 - (2 * j))], i, 1, 6], j, 0, 15) → listat1
  8. Sequence(Sequence[If[Mod[(i + 2) / 2 + (3 * (j - 1)), m] ≠ 0, Polygon[(i + 41, 40 - j), (i + 39, 40 - j), 4]], i, 0, 10, 2], j, 1, 32, 2) → listam2
  9. Sequence(Sequence[If[Mod[(i + 2) / 2 + (3 * (j - 1)), n] ≠ 0, Polygon[(i + 2 + (3.9 * t), 40 - j), (i + (3.9 * t), 40 - j), 4]], i, 0, 10, 2], j, 1, 32, 2) → listam1

AI Drawing Prompt Reference

Draw the set of common multiples of two integers n and m, and display their least common multiple (LCM). First, input n and m, then calculate the LCM a. Next, draw a series of squares to represent the multiples of n and m, and adjust t to show the multiple lists for n and m. Finally, label these multiples with text and use buttons to update the display.
The prompt above was compiled from the original drawing commands and is for reference only.