The Dan Numbers

Programming a solution to a math puzzle