
    Write a function to determine if an event engagement score follows a special pattern where it equals one less than twice its reverse value, helping identify unique user activity patterns in the recommendation system. For example, if a user's event engagement score is 36, check if it satisfies the pattern by comparing it with twice the reverse (63) minus 1.
    

    
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 an event engagement score follows a special pattern where it equals one less than twice its reverse value, helping identify unique user activity patterns in the recommendation system. For example, if a user's event engagement score is 36, check if it satisfies the pattern by comparing it with twice the reverse (63) minus 1.
    

    """
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 an event engagement score follows a special pattern where it equals one less than twice its reverse value, helping identify unique user activity patterns in the recommendation system. For example, if a user's event engagement score is 36, check if it satisfies the pattern by comparing it with twice the reverse (63) minus 1.
    

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