This script decomposes proper fractions into a sum of Egyptian fractions - fractions of the form 1/n. The algorithm that is used is the "greedy algorithm."
More on egyptian fractions...David Eppstein's Egyptian fractions page.