The rule is if number equals and even number, it divides by 2. If it is odd, is it multiplied by 4. The number always makes a pattern like: 20, 10, 5, 20, 10, 5, 20, 10, 5... and so on. In very rare cases, the list starts out not a pattern, but turns into one eventually.