choice - a bad choice for a parameter name to determine algorithm.  As well, as name `egyptian` - a bad name for function.