GCD na LCM Calculator
Chọ̀ọ́ dìfọ́ọ̀ltụ̀ kacha nta nakwa dìfọ́ọ̀ltụ̀ ala nke ndesịta nọmba.
Nhọrọ ndị ahụ ga-akpụzi mgbe ị na-etipụta.
N'ihe banyere calculator a
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.
Ajụjụ ndị a na-ajụkarị
Olee otú GCD a na-ehazi?
Ọ na-eji alọgodị Euclidean: gbanwee n'ụzọ n'ụzọ n'imebi nke ukwuu nke ọnụọgụgụ na nke dị n'imebi nke abụọ, ruo mgbe otu ga-abụ sekọnd. Nke ọzọ bụ GCD.
Olee otú GCD na LCM na-akpa?
Maka nọmba abụọ, GCD × LCM = ihenhọrọ nke nọmba. Ya mere LCM = a × b ÷ GCD, nke bụ otú tulee ahụ na-eweta LCM n'elu ndesịta zuru ezu.
Gịnị bụ ihe coprime pụtara?
Ụwa abụọ mọọbụ karịa nọmba bụ coprime mgbe ha nwere divisor nke kasị ukwuu bụ 1 - ha na-ekerịta ọbụla ihenhọrọ nke ha nwere n'otu n'otu n'ebe ọbụla n'ebe ọbụla. Tulee ahụ na-egosipụta nke a maka gị.
M ga-enwe ike ịbanye karịa nọmba abụọ?
Ee. Kwụsị inite ndị ahụ na kam mọọbụ ebe oghe na GCD na LCM a na-ehazi ha n'ime ndesịta niile ahụ.
Gịnị bụ GCD na LCM nke 12, 18 na 24?
Nke kasị ukwuu n'ime ndị na-ejikọtara ọnụ bụ 6 (ọnụọgụgụ kasị ukwuu na-ejikọtara ọnụ bụ atọ) na nke kasị obere n'ime ndị na-ejikọtara ọnụ bụ 72.
Ọ bụrụ na usoro nke nọmba ndị ahụ dị mkpa?
Ọ dịghị. GCD na LCM abụọ dị otua n'agbanyeghị ntọala ị na-etipụta nọmba na ya.
API — jiri kaadị a site na kóòdù
Kpọọ kalkulata a dịka ebe ngwụcha JSON n'efu - enweghị kii achọrọ. Ziga valiu ebe ahụ n'okpuru dịka paramita ajụjụ mọọbụ JSON. Ihe ọbụla ị na-ewepụ na-eji dìfọ́ọ̀ltụ̀ nke a na-edebe ihuakwụkwọ a na ya; parameter a na-amaghị bụ 400, ọ dịghị sẽọ̀rọ̀. Gụọ ngwe ndị ahụ niile →
Ebemkpofuozi
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);
Ihe a na-ahụta bụ n'ihi nlekọta n'ozuzu ya, ọ bụghị nlekọta ego, ọgwụ ma ọ bụ nlekọta ego.