利用质因数分解法求最大公约数

利用质因数分解法求最大公约数
几何画板及绘图内容加载中,请稍等……
2022-12-01 10:55
本示例演示如何通过质因数分解法求两个或多个自然数的最大公约数(ggT)。核心概念包括自然数的因数分解、质因数、最大公约数的定义及计算方法。GeoGebra 中使用了 GCD 命令、文本输入框、随机排列控件及多个对象(如 sol1‑sol8、Text1 等)来动态展示分解过程。适合小学高年级(5‑6年级)学生学习数感与因数概念。

GeoGebra 命令及参数

  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 绘图提示语参考

该图形展示两个数的GCD计算过程。左侧显示两个输入框,用于输入自然数;右侧显示两个GCD结果,分别为36和84。下方有一个矩形框,内部包含随机生成的数字列表。列表中数字会根据滑动控制动态变化,并自动去除重复项。图形右侧有一个气泡,提示用户完成计算。整体设计简洁,适合小学生理解最大公约数的概念。
以上提示语为根据原始绘图命令整理而来,仅供参考。