The binomial coefficient or, alternatively, the number of combinations of n items taken k at a time, provides two defining recurrences. One of these provides a very useful recursive function a very good way for a program to calculate this function. The other provides a very wasteful recursive function the balancing bad and ugly way.
/lp/association-for-computing-machinery/binomial-coefficient-recursion-the-good-and-the-bad-and-ugly-XD8KKVr8Su