if the required number is less than j , we skip as we have already calculated for that value before . As j here starts with i and rem is less than j .
if ( rem < j ) : NEW_LINE INDENT continue NEW_LINE DEDENT