Handled some other cases (remainder of 3, 6, or 7 after division by 8)