Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5687 > unrolled thread

Find two numbers a,b such us: a+b=5432 & LCM[a,b]=223020

Started bydimitris <dimmechan@yahoo.com>
First post2011-10-16 20:46 +0000
Last post2011-10-16 20:46 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Find two numbers a,b such us: a+b=5432 & LCM[a,b]=223020 dimitris <dimmechan@yahoo.com> - 2011-10-16 20:46 +0000

#5687 — Find two numbers a,b such us: a+b=5432 & LCM[a,b]=223020

Fromdimitris <dimmechan@yahoo.com>
Date2011-10-16 20:46 +0000
SubjectFind two numbers a,b such us: a+b=5432 & LCM[a,b]=223020
Message-ID<j7ffrc$j87$1@smc.vnet.net>
This is taken from the recent book (2010): " Mathematica: A Problem-
Centered Approach" by R. Hazrat.

"The sum of two positive integers is 5432 and their least common
multiple is
223020. Find the numbers."

A solution:

Do[If[LCM[i, 5432 - i] == 223020, Print[i, "  ", 5432 - i]], {i, 1,
2718}]
1652  3780

I wonder if we can solve the system of equations:

a+b==5432&&LCM[a,b]==223020

using codes that contain built in functions like Reduce.

I guess this is not a trivial one because the so much powerful Reduce
itself fails

In[1]:= Reduce[{a + b == 5432, LCM[a, b] == 223020}, {a, b}, Integers]

During evaluation of In[1]:= Reduce::nsmet:This system cannot be
solved with the methods available to Reduce. >>

Out[1]= Reduce[{a + b == 5432, LCM[a, b] == 223020}, {a, b}, Integers]

Any ideas?

Dimitris

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web