Sign in Join
Wiki copytemporary

Least common multiple/fr: what changed

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

Title: Least common multiple/fr

OldNewLine
1+Le plus petit multiple commun (PPMC) de deux entiers a et b et est le plus entier positif divisible par a et b.
2+
3+Par exemple : pour 12 et 9, le PPMC vaut 36 (36=3*12=4*9).
4+
5+## Fonction LeastCommonMultiple
6+
7+``` pascal
8+function LeastCommonMultiple(a, b: Int64): Int64;
9+begin
10+ result := b * (a div GreatestCommonDivisor(a, b))
11+end;
12+```
13+
14+> **Note:** la fonction Function [[Greatest common divisor/fr|GreatestCommonDivisor]] doit être définie avant cette fonction.
15+
16+## Voir aussi
17+
18+- [[Greatest common divisor/fr|Plus grand diviseur commun]]
19+
20+---
21+*From the Free Pascal wiki, page "Least common multiple/fr", 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