GCD & LCM Calculator
რიცხვების სიის ყველაზე დიდი საერთო მყოფელისა და ყველაზე მცირე საერთო მრავლობითი რიცხვის მოძებნა.
შედეგები ახლდება ტექსტის შეყვანისას.
ამ კალკულატორის შესახებ
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.
ხშირად დასმული კითხვები
როგორ ითვლება GCD?
ეს იყენებს ევკლიდის ალგორითმს: უფრო დიდი რიცხვის გამყოფი დარჩენილი ნაწილის გამყოფი ნაწილის
როგორია GCD და LCM კავშირი?
ორი რიცხვისთვის, GCD × LCM = რიცხვების პროდუქტი. ასე რომ LCM = a × b ÷ GCD, რომელიც არის გზა, რომლითაც ხელსაწყო ზრდის LCM მთლიან სიაში.
What does coprime mean?
ორი ან მეტი რიცხვი თანაპირობითია, თუ მათი ყველაზე დიდი საერთო მყოფელი 1- ია - მათ არ აქვთ საერთო ფაქტორი, გარდა 1- ს. ეს ფუნქცია ამ ფაქტორს აგებს.
Can I enter more than two numbers?
დიახ. მთლიანი რიცხვები მძიმეებით ან სივრცეებით გაყოფით, GCD და LCM გამოითვლება მთელი სიის მიხედვით.
რა არის GCD და LCM 12, 18 და 24?
6-ის ყველაზე დიდი საერთო მყოფელია 6 (ყველაზე დიდი რიცხვი, რომელიც 3-ს ყოფს), ხოლო ყველაზე პატარა საერთო მრავლობითი 72.
Does the order of the numbers matter?
No. Both the GCD and the LCM are the same regardless of the order you type the numbers in.
API - გამოიყენეთ ეს კალკულატორი კოდისგან
ამ კალკულატორის გამოძახება როგორც უფასო JSON დასასრული - ღილაკი არ არის საჭირო. ქვემოთ მოცემული ველი პარამეტრების ან JSON- ის სახით გაგზავნეთ. ყველა თქვენ მიერ გამოტოვებული პარამეტრის გამოყენებისას იგივე ნაგულისხმევი პარამეტრები გამოიყენება, რაც ამ გვერდზეა; უცნობი პარამეტრის ნომერი არის 400, არასდროს დუმილის ნულს. API დოკუმენტაციის სრული წაკითხვა →
დასასრული
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);
Results are estimates for general guidance only, not financial, medical or tax advice.