
    Write a function to validate bank account reference numbers by checking if the number is one less than twice its reverse value, which serves as a verification rule in the loan processing system. This validation helps prevent data entry errors and ensures the integrity of account identifiers in the automated loan approval workflow.
    

    
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 validate bank account reference numbers by checking if the number is one less than twice its reverse value, which serves as a verification rule in the loan processing system. This validation helps prevent data entry errors and ensures the integrity of account identifiers in the automated loan approval workflow.
    

    """
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 validate bank account reference numbers by checking if the number is one less than twice its reverse value, which serves as a verification rule in the loan processing system. This validation helps prevent data entry errors and ensures the integrity of account identifiers in the automated loan approval workflow.
    

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