def pointgroup_has_inversion(number):
    """
    Return True if the pointgroup with given number has inversion, 
    False otherwise.

    :param number: The integer number of the pointgroup, from 1 to 32.
    """
    if number in [2, 5, 8, 11, 15, 17, 20, 23, 27, 29, 32]:
        return True
    elif number in [1, 3, 4, 6, 7, 9, 10, 12, 13, 14, 16, 18, 19, 21, 22, 
        24, 25, 26, 28, 30, 31]:
        return False
    else:
        raise ValueError('number should be between 1 and 32')
