PE26 solution based upon remainders