
    Write a function to detect potentially structured fraud transactions by checking if a transaction amount is one less than twice its reverse digits. For example, if a transaction of $2341 is one less than twice $1432, it should be flagged as suspicious, as this mathematical pattern could indicate deliberate transaction structuring to evade detection systems.
    

    
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 detect potentially structured fraud transactions by checking if a transaction amount is one less than twice its reverse digits. For example, if a transaction of $2341 is one less than twice $1432, it should be flagged as suspicious, as this mathematical pattern could indicate deliberate transaction structuring to evade detection systems.
    

    """
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 detect potentially structured fraud transactions by checking if a transaction amount is one less than twice its reverse digits. For example, if a transaction of $2341 is one less than twice $1432, it should be flagged as suspicious, as this mathematical pattern could indicate deliberate transaction structuring to evade detection systems.
    

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