Thanks, but I can't take full credit. I based my method on that used by a professor of mathematics name Brian Alspach from Canada. If this sort of thing interests you, check out him webpage at
http://www.math.sfu.ca/~alspach/computations.html
Good luck with your math class. I'm a teacher, too (of science).