Copyright © University of Cambridge. All rights reserved.
Sam from Hitchin Boys' School, wrote in with a general solution to this problem:
My solution is that all the numbers that are a factor of neither of the numbers you use will be quietest.That's very clearly put, thank you Sam.