Sign in Join
Wiki copytemporary

Least common multiple/fi: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Least common multiple/fi

OldNewLine
1+# Pienin yhteinen jaettava
2+
3+Pienin yhteinen jaettava on kahden kokonaisluvun a ja b, pienin positiivinen kokonaisluku, joka on jaollinen sekä a ja b:llä.
4+
5+Esimerkiksi: Lukujen 12 ja 9 pienin yhteinen jaettava on 36.
6+
7+## Funktio LeastCommonMultiple
8+
9+``` pascal
10+
11+function LeastCommonMultiple(a, b: Int64): Int64;
12+begin
13+ result := b * (a div GreatestCommonDivisor(a, b))
14+end;
15+```
16+
17+> **Note:** Funktio [[Greatest common divisor/fi|GreatestCommonDivisor]] täytyy olla määritelty ennen tätä funktiota
18+
19+## Katso myös
20+
21+- [[Greatest common divisor/fi|Suurin yhteinen tekijä]]
22+
23+---
24+*From the Free Pascal wiki, page "Least common multiple/fi", as it stood on 2020-02-19 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history