Exam Question : Using a 74163, implement the following counting sequence
You need logic with 4 inputs (QA...QD) that produces 5 outputs: when LD should be asserted and what 4 values should be loaded. 

Some input values should never be encountered, so we can treat the outputs for those values as don't-cares.

Make a truth table, then minimize the logic (maybe using Karnaugh maps), and you should get a solution.