Reworked A1/E1 to use recursion instead of a formula