If the number is even, it divides by two. If it Is odd it multiplies by three and adds 1. It repeats until it hits 1. Then it plots the highest number on the graph