14/15: C++ solutions (used boost factorial)