A

-nary error-correcting code with

code words of length

can have no greater minimum distance

than

. The class of codes for which

is studied first in general, then with the restriction that the codes be linear. Examples and construction methods are given to show that these codes exist for a number of values of

, and

.