On restricted $m$-ary partitions.