a general algorithm for radioactive decay