
    Write a function to determine if a professional's profile ID number is one less than twice its reverse to assign them to a specialized networking cluster. For example, if a professional's ID is 36, the function should check if 36 is one less than twice its reverse (63), which would qualify them for the pattern-matched networking group.
    

    
def rev(num):
    rev_num = 0
    while num > 0:
        rev_num = rev_num * 10 + num % 10
        num = num // 10
    return rev_num

def check(n):
    """
    Write a function to determine if a professional's profile ID number is one less than twice its reverse to assign them to a specialized networking cluster. For example, if a professional's ID is 36, the function should check if 36 is one less than twice its reverse (63), which would qualify them for the pattern-matched networking group.
    

    """
def rev(num):
    rev_num = 0
    while num > 0:
        rev_num = rev_num * 10 + num % 10
        num = num // 10
    return rev_num

def check(n):
    """
    Write a function to determine if a professional's profile ID number is one less than twice its reverse to assign them to a specialized networking cluster. For example, if a professional's ID is 36, the function should check if 36 is one less than twice its reverse (63), which would qualify them for the pattern-matched networking group.
    

    """
    return 2 * rev(n) == n + 1