After finding reciprocal , check if the reciprocal is in A . P . To check for A . P .
if ( checkIsAP ( rec , n ) ) : NEW_LINE INDENT return True NEW_LINE DEDENT else : NEW_LINE INDENT return False NEW_LINE DEDENT