Factoring with the Factor Tree

Factoring, i.e., listing all the prime factors, of an integer is a useful skill that often helps to solve math problems. For example, one of the ways to find the GCD (Greatest Common Divisor) or LCM (Least Common Multiple) of two integers is by listing all their prime factors. The GCD is then the product of all the common factors; the LCM is the product of all the remaining ones.

The applet below is a tool for finding such prime factorizations with the device known as the Factor Tree, meaning that you proceed a step at a time. At the beginning you are given a number, say N, which is to be factored and two boxes beneath it. The boxes are to be filled with two numbers, say, N1 and N2 - factors of N - such that N = N1 × N2. (You only need to find one factor. If one is found correctly, the other is filled out automatically. (In "real life," you may use a calculator or the long division algorithm.) Note that the two numbers need not be prime. The one which is not will grow two boxes beneath it so that you'll be able to proceed with further factoring until all the prime factors have been found.

Do not be intimidated if you can't list all the factors right away. You do not have to. Just finding one factor will simplify the problem. Remember the divisibility rules. An even number is divisible by 2. A number is divisible by 3 if the sum of its digits is divisible by 3. The number that ends in 5 is divisible by 5 and the one that ends in 10 is divisible by 10.

While the prime factorization is unique (up to the order of factors), the factor tree reflects the order in which the factors were found, and is by no means unique. So you do not have to worry about finding a "correct" factor at any step. Any factor will do. Check the three examples of factoring of 108:

  A factor tree for 108, #1  A factor tree for 108, #2  A factor tree for 108, #3

(There is a button at the bottom of the applet that allows you to repeat a problem and see for yourself that different factor trees still produce the same prime factorizaion for any number.)

At any time there may be several boxes to type in the factors. Choose any of them. After typing in a number Press the Enter key. How do you choose a box? You may click on it or you may press the Tab key 1 or more times to get to the box of your choice.

 

This applet requires Sun's Java VM 2 which your browser may perceive as a popup. Which it is not. If you want to see the applet work, visit Sun's website at http://www.java.com/en/download/index.jsp, download and install Java VM and enjoy the applet.


Buy this applet
What if applet does not run?

(Elsewhere we use two factor trees simultaneously to find the greatest common divisor and the least common multiple of two numbers.)


Related material
Read more...

  • GCD and LCM via Factor Tree
  • GCD and LCM by Plain Factorization
  • Common Multiples and the Least Common Multiple
  • GCD(M, N) x LCM(M, N) = M x N
  • Divisibility Criteria
  • Euclid's Algorithm
  • Algorithm for Computing the LCM
  • Factors And Multiples
  • Two Properties of Greatest Common Divisor
  • Properties of GCD and LCM
  • A Line in a Square Grid
  • Number of Factors of an Integer
  • |Contact| |Front page| |Contents| |Algebra| |Store|

    Copyright © 1996-2012 Alexander Bogomolny

     40618704

    A math books store at a unique math study site. Shopping at the store helps maintain the site. Thank you.
    Sites for teachers
    Sites for parents
    Terms of use
    Awards
    Interactive Activities

    CTK Exchange
    CTK Wiki Math
    CTK Insights - a blog
    Math Help
    Games & Puzzles
    What Is What
    Arithmetic
    Algebra
    Geometry
    Probability
    Outline Mathematics
    Make an Identity
    Book Reviews
    Stories for Young
    Eye Opener
    Analog Gadgets
    Inventor's Paradox
    Did you know?...
    Proofs
    Math as Language
    Things Impossible
    Visual Illusions
    My Logo
    Math Poll
    Cut The Knot!
    MSET99 Talk
    Old and nice bookstore
    Other Math sites
    Front Page
    Movie shortcuts
    Personal info
    Privacy Policy

    Guest book
    News sites

    Recommend this site

    Sites for parents

    Education & Parenting

    Search:
    Keywords:

    Google
    Web CTK
    Supported by
    3wVentures