GCD un LCM kalkulators

Atrast lielāko kopējo dalītājs un vismazāk izplatīto vairākkārt no skaitu sarakstu.

Atsevišķi veseli cipari ar komatiem vai atstarpēm.
Vislielākais kopējais dalījums (GCD) —
Mazākais parastais skaitlis (LVM) —
Koprim? —

Rezultāti atjaunināt, kā jūs tipa.

Vai šis kalkulators tev sniedza pareizo atbildi?

Par šo kalkulatoru

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.

Bieži uzdotie jautājumi

Kā aprēķina GCD?

Tā izmanto Euclidean algoritmu: atkārtoti aizstāt lielāku skaitu ar atlikušo dalot abas, līdz viens kļūst nulle. Otrs ir GCD.

Kā ir saistīta ar GCD un LCM?

Diviem cipariem, GCD × LCM = skaitlisko rādītāju produkts. Tātad LCM = a × b ÷ GCD, kas ir veids, kā instruments paplašina LCM visā sarakstā.

Ko nozīmē koprime?

Divi vai vairāki skaitļi ir komrē, ja to lielākais kopējais dalītājs ir 1 — viņiem ir kopīgs faktors, kas nav 1. Rīks karogi šo jums.

Vai varu ievadīt vairāk nekā divus numurus?

Jā. Atsevišķi veseli cipari ar komatiem vai atstarpēm un GCD un VCM tiek aprēķināti visā sarakstā.

Kas ir GCD un VKM 12, 18 un 24?

Lielākais kopējais dalītājs ir 6 (lielākais skaits dalot visus trīs) un vismazāk izplatītais vairākkārtējais ir 72.

Vai numuru secība ir svarīga?

Nē. Gan GCD, gan LCM ir vieni un tie paši neatkarīgi no pasūtījuma, ko ieraksti numurus.

❤️ Mīlestība Calculator.Free? Dalīties ar to

𝕏  X Facebook Reddit
API – izmantot šo kalkulatoru no koda

Sūtīt lauka vērtības zemāk kā vaicājumu parametrus vai JSON. Jebko, ko nelaižat, izmanto to pašu noklusēto šo lapu, ar kuru tiek aizpildīta nezināma parametra versija 400, nekad kluss nulles variants. Lasīt visus API dokumentus →

Mērķa punkts

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);

Rezultāti ir aprēķini tikai par vispārējiem norādījumiem, nevis finanšu, medicīnas vai nodokļu konsultācijām.