Solver Compute Least Common Multiple
Algebra
->
Algebra
->
Divisibility and Prime Numbers
-> Solver Compute Least Common Multiple
Log On
Ad:
Algebra Solved!™
: algebra software solves algebra homework problems with step-by-step help!
Ad:
Algebrator™
solves your algebra problems and provides step-by-step explanations!
Algebra: Divisibility and Prime Numbers
Solvers
Lessons
Problems, free tutors
Quiz
In Depth
Source code of 'Compute Least Common Multiple'
This Solver (Compute Least Common Multiple)
was created by by
ichudov(404)
:
View Source
,
Show
,
Put on YOUR site
About ichudov
:
I am not a paid tutor, I am the owner of this web site.
==section input Compute Least Common Multiple (LCM) of *[input a=15] and *[input b=6]. ==section solution perl print "LCM of two numbers can be calculated simply: calculate the product of these numbers and divide them by their greatest common factor (GCF). That's what we are going to do. Calculate GCF of $a and $b: "; $gcf = solve( "find_greatest_common_factor", $a, $b ); $lcm = ($a*$b/$gcf); print " The product of $a and $b, divided by the GCF $gcf, is {{{$a*$b/$gcf = $lcm}}}. So, $lcm is the least common multiple of $a and $b."; ==section output lcm ==section check a=6 b=15 lcm=30