replaced #inject call w/ #reduce for clarity
edit Euler#factors for clarity