Check for each divisor i . e . arr [ i ] % b = k or not , if yes then prthat pair .
for j in range ( len ( v ) ) : NEW_LINE INDENT if ( arr [ i ] % v [ j ] == k and arr [ i ] != v [ j ] and occ [ v [ j ] ] ) : NEW_LINE INDENT print ( " ( " , arr [ i ] , " , " , v [ j ] , " ) " , end = " ▁ " ) NEW_LINE isPairFound = True NEW_LINE DEDENT DEDENT