Monomial HCF and LCM
Monomial HCF and LCM
Monomial HCF and LCM
- 197 bytes
- COMP mode
Worked examples
Example 1
Let P = 12x³y² and Q = 18x²y⁵. Find (a) the HCF and (b) the LCM of P and Q.
Answer
Standard solution (without a calculator)
- Coefficients: 12 = 2² × 3 and 18 = 2 × 3². HCF = 2 × 3 = 6 (lowest powers of the common primes); LCM = 2² × 3² = 36 (highest powers).
- Powers of x: 3 and 2, so the HCF has x² and the LCM has x³.
- Powers of y: 2 and 5, so the HCF has y² and the LCM has y⁵.
- Combine and check: HCF = 6x²y² and LCM = 36x³y⁵. P ÷ HCF = 2x, Q ÷ HCF = 3y³, LCM ÷ P = 3y³ and LCM ÷ Q = 2x are all monomials, as required.
Example 2
Given that a and b are nonzero, a student adds 1/(8a²b), 1/(12a³b²) and 1/(20ab³) and first finds their lowest common denominator. Which of the following is it?
Answer
Standard solution (without a calculator)
- Idea: the lowest common denominator is the LCM of the denominators 8a²b, 12a³b² and 20ab³.
- Coefficients: 8 = 2³, 12 = 2² × 3 and 20 = 2² × 5, so the LCM is 2³ × 3 × 5 = 120 (the HCF is 2² = 4).
- Powers: a has powers 2, 3, 1, largest 3; b has powers 1, 2, 3, largest 3. So the LCM is 120a³b³.
- Check: 120a³b³ divided by the three denominators gives 15ab², 10b and 6a², all monomials. 4ab is the HCF, 120a²b² is not divisible by 12a³b², and 240a³b³ is a common multiple but not the lowest. Answer C.
Example 3
Consider 18x⁴y² + 30x²yz³ + 42x³z². (a) Find the HCF of the three terms and factorise the expression by taking it out. (b) Find the LCM of the three terms.
Answer
Standard solution (without a calculator)
- Fill in missing letters: the terms are 18x⁴y²z⁰, 30x²y¹z³ and 42x³y⁰z². A missing letter has power 0, and y with no written power has power 1.
- Coefficients: 18 = 2 × 3², 30 = 2 × 3 × 5 and 42 = 2 × 3 × 7. HCF = 2 × 3 = 6; LCM = 2 × 3² × 5 × 7 = 630.
- Powers: x: 4, 2, 3 → smallest 2, largest 4. y: 2, 1, 0 → smallest 0, largest 2. z: 0, 3, 2 → smallest 0, largest 3.
- Take out the HCF: HCF = 6x²y⁰z⁰ = 6x². Dividing the terms by 6x² gives 3x²y², 5yz³ and 7xz², so 18x⁴y² + 30x²yz³ + 42x³z² = 6x²(3x²y² + 5yz³ + 7xz²).
- LCM: 630x⁴y²z³.
When to use it
Find the HCF and LCM of monomials such as 12x³y² and 18x²y⁵. The HCF uses the HCF of the coefficients and the smallest power of each letter; the LCM uses the LCM of the coefficients and the largest power of each letter. The program gives these numbers and you assemble the algebraic answer.
Enter the data
- X?: the number of monomials n. M?: the number of different letters m (0 if you only want the HCF and LCM of whole numbers).
- C?: the n coefficients in the order of the monomials. After the first two results, enter at C? the power of the first letter in every monomial (same order), then the second letter, and so on. Type 0 for a letter that does not appear.
Read the results
- The first pair is the HCF and the LCM of the coefficients. Each later pair belongs to one letter: the smallest power (used in the HCF), then the largest power (used in the LCM). With m letters there are 2 + 2m results.
- Press EXE after each Disp screen. The last LCM power is the final screen. Combine the numbers in your letter order, e.g. 6, 36, 2, 3, 2, 5 → HCF 6x²y², LCM 36x³y⁵.
Question types
- Original practice for HKDSE Mathematics Compulsory Part (algebra): HCF and LCM of monomials, the lowest common denominator of algebraic fractions, and taking out the common factor of an expression. For a polynomial, factorise first and treat each distinct factor like a letter.
Before you start
- Use COMP and an empty P1 with at least 197 bytes free; the angle unit does not matter. The program overwrites A, B, C, D, X, Y, M and Ans, and leaves the display set to Norm 1.
- Type X (number of monomials, at least 1) and M (number of letters, 0 or more) at every run. On a rerun X? may not show the old n and M? usually shows 0, so never skip them with a blank EXE.
- Enter all coefficients first, then one letter at a time with its powers in the same monomial order. Do not enter one monomial's coefficient and powers together.
- Coefficients must be positive integers; powers must be 0 or positive integers. An unwritten coefficient is 1, a letter with no written power has power 1, and a missing letter has power 0. Zero, negative or fractional coefficients and negative or fractional powers are not allowed.
- Keep each coefficient, the final LCM coefficient and every power at most 9,999,999,999. Larger results may switch to scientific notation and are no longer exact.
- Type every value at C?, including 0. A blank EXE keeps the previous value of C, not 0. If you are unsure what you entered, press AC and run the program again.
- There is no input check and no factorisation. A polynomial must be fully factorised first, with equal factors written the same way; each column then holds one factor.
Checking access…