Abstract
The exact sizes of optimal -ary codes of length , constant weight and distance have only been determined for , and for and sufficiently large. We completely determine the exact size of optimal -ary codes of constant weight three and minimum distance five for all by establishing a connection with Hanani triple packings, and settling their existence.