freeCodeCamp/guide/chinese/mathematics/least-common-multiple/index.md

28 lines
980 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Least Common Multiple
localeTitle: 最不常见的多重
---
## 最不常见的多重
两个或更多个数的最小公倍数LCM是最小数不计0它是所有数的倍数。
公倍数是两个或更多个数的倍数。 4和5的常见倍数是0,20,40 ......
两个数的最小公倍数LCM是两者的倍数的最小数非零
40,4,8,12,16,20,24,28,32,36,40,44的倍数......
倍数为50,5,10,15,20,25,30,35,40,45,50,55 ......
显然4和5的最小公倍数是20。
### 让我们学习如何计算最小公倍数
#### 第1步列出每个数字的所有素数因子
例如考虑数字30和40。
30 = 2 x 3 x 5
40 = 2 x 2 x 2 x 5
#### 步骤2将每个因子乘以任一数字中出现的最大次数。如果在两个数字中同一因子出现多次则将该因子乘以它发生的最大次数。
23的出现
出现31的情况
出现51的情况
LCM30,40= 2×2×2×3×5 = 120