Given a number, find the sum of all the multiples of particular numbers up to but not including that number.