Check if n is even then every set will contain 2 adjacent elements up - to n
if ( n % 2 == 0 ) : NEW_LINE INDENT for i in range ( 0 , n / 2 ) : NEW_LINE INDENT firstadj = 2 * i + 1 ; NEW_LINE secadj = 2 * i + 2 ; NEW_LINE print ( " ( " , firstadj , " , ▁ " , secadj , " ) " ) ; NEW_LINE DEDENT DEDENT else : NEW_LINE