GCD & LCM Calculator

Pezani lalikulu kwambiri common divider ndi pang'ono kwambiri common multiple ya mnda wa mawerengeredwe.

Osiyana zigawo ndi koma kapena zigawo.
Mkulu kwambiri wogawana (GCD) —
Least common multiple (LCM) —
Kodi mukudziwa? —

Zithunzizi zimasintha monga momwe mumalemba.

Kodi izi calculator anakupatsani yankho labwino?

Zachidule

This calculator finds the greatest common divisor (GCD) — the largest number that divides all your values evenly — and the least common multiple (LCM), the smallest number they all divide into. Enter two or more whole numbers separated by commas or spaces and it also tells you whether they are coprime.

The GCD is found with the Euclidean algorithm: repeatedly replace the larger number with the remainder of dividing the two until one becomes zero; the other is the GCD. The LCM is then built up pairwise using LCM = a × b ÷ GCD. For 12, 18 and 24 the greatest common divisor is 6 and the least common multiple is 72. When the GCD is 1 the numbers share no common factor and are called coprime.

The GCD is what you use to reduce a fraction to lowest terms, while the LCM gives the common denominator for adding fractions and the period at which repeating cycles line up. The result is the same no matter what order you enter the numbers in.

Mafunso ofunsidwa nthawi zambiri

Kodi ndi GCD anawerengedwa?

Amagwiritsa ntchito algorithm ya Euclidean: nthawi zonse amasintha idadi yayikulu ndi idadi yosatha yogawa awiriwa, mpaka wina afike zero. Mmodzi ndi GCD.

Kodi ndi GCD ndi LCM zokhudzana?

Kwa mawerengedwe awiri, GCD × LCM = chigawo cha mawerengedwe. So LCM = a × b ÷ GCD, amene ndi mmene chida amafalitsa LCM m'munsi mwa mnda wonse.

Kodi coprime zikutanthauza chiyani?

Mawerengero awiri kapena ambiri ndi coprime pamene iwo zikuluzikulu zosiyana ndi 1 — iwo kugawana palibe chosiyana factor zina kuposa 1. chida flags izi kwa inu.

Kodi ndingapezepo ndalama zambiri kuposa zomwe ndalandira?

Yes. Osiyana zigawo ndi zigawo ndi zigawo kapena malo ndi GCD ndi LCM anawerengedwa m'munsimu mnda wonse.

Kodi ndi chiyani GCD ndi LCM ya 12, 18 ndi 24?

Mkulu kwambiri wogawana nawo ndi 6 (mkulu kwambiri wogawana nawo onse atatu) ndi wamkulu kwambiri wogawana nawo ndi 72.

Kodi ndondomeko ya mfundo ndi nkhani?

No. Both the GCD ndi LCM ndi chimodzimodzi ngakhale kuti ndondomeko inu kulemba mawerengeredwe mu.

❤️ Ubwenzi Calculator.Free? Share it

𝕏  X Facebook Reddit
API — kugwiritsa ntchito izi calculator kuchokera code

Kuti mudziwe zambiri, pitani ku www.json.org/json.html. Kuti mudziwe zambiri, pitani ku www.json.org/json.html. Chomweko chilichonse chimene mumasiya chimagwiritsa ntchito mfundo yoyamba yomweyi yomwe tsambali limagwiritsa ntchito; mfundo yosadziwika ndi 400, siyiyenera kukhala zero yosadziwika. Onani zonse API docs →

Chithunzi

GET https://calculator.free/api/v1/gcd-lcm/

curl

curl "https://calculator.free/api/v1/gcd-lcm/?numbers=12, 18, 24"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/gcd-lcm/?" + new URLSearchParams({
    "numbers": "12, 18, 24"
  }));
const data = await r.json();
console.log(data.results);

Zimenezi ndi zowerengera zokhudzana ndi malangizo amtundu uliwonse, si zokhudzana ndi ndalama, zamoyo kapena zokhudzana ndi ndalama.