Every time 1st least significant digit == 6, increment 2nd least significant digit by 1 and set 1st to 0. In all other cases increment both by 1 (or the number by 11).