Found this solution for multiples of five; slight change for multiples of six