We discuss the prefix encoding of a

-ary source

into an

-symbol channel alphabet with

. We present an optimal encoding scheme that minimizes the expected cost per symbol in the case of equally probable source symbols and arbitrary channel symbol costs.