how do u find the expanded algorithm