Rewriting Numbers with the Distributive Property