GCD we LCM Kalkülatory

Bir sanyň iň uly ortakly bölejini we iň kiçi ortakly gatlakyny tap

Tamyry öňki bilen paýlaş
Ençeme —
En az —
Sykmak —

Netijeler ýazýan wagtyň täzelener.

Bu hasapçy size dogry jogap berdimi?

Bu hasapçy hakda

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.

Köp soralýan soraglar

GCD nädip hasap edilýär?

Bu Euklidean algorytmy ulanýar: bir sany sıfryň içinde bolşyça, ikisini bölmekden galany bilen uly sany gaýtalap çalşyň. Diňe beýlekisi GCD.

GCD we LCM nädip baglanyşýar?

Iki san üçin, GCD × LCM = sanlaryň netijesi. Şonuň üçin LCM = a × b ÷ GCD, bu esbap LCM'i bütin bir sanawa uzadýar.

Coprime näme?

Iki ýa-da has köp sanlar iň uly ortak böliji 1 bolanda koprimardyr - olar 1'den başga ortak faktory paýlaşmaýar. Asylly buny siziň üçin baglançlaýar.

Men ikiden köp rakamy girizmek isleýärinmi?

Eý. Tamyrlary kemler ýa boşluklar bilen ayır we GCD we LCM ähli sanawa hasap edilýär.

12, 18 we 24-iň GCD we LCM näme?

En ulusy umumy bölüji 6 (en ulusy üçüsini bölýän sany) we en kiçisi umumy köpeldiş 72.

Rakamlaryň tertibi ähmiýetlimi?

Haýba. GCD we LCM ikisi hem birdir, siz näçe gezek sanlary ýazsaňyzam.

❤️ Love Calculator.Free? Paýlaş

𝕏  X Facebook Reddit
API — bu hasapçyny koddan ullan

Bu hasapçyny boş JSON ahtar noktasy hökmünde çagyr - açar gerek däl. Aşakdaky meýdança mykdarlaryny soragyň parametrleri ýa-da JSON hökmünde iber. Siziň goýmaýan hernäňiz şu sahypanyň öň bellenen öň bellenenini ulanýar; namydar parametr 400, hiç wagt sessiz sıfır däl. Eňlisçe senedleri oka →

Endpoint

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

Netijeler diňe umumy ýardam üçin hasaplanypdyr, maliýe, saglyk ýa-da salgyt maslahaty üçin däl.