
    Given a transaction identifier number in a bank's fraud detection system, develop a function that determines the next possible suspicious pattern by finding the next greater number that can be formed by rearranging the digits of the original identifier. The system needs this to predict potential fraud patterns in real-time transaction monitoring, where each identifier represents a sequence of transaction events.
    

    
def rearrange_bigger(n):
    """
    Given a transaction identifier number in a bank's fraud detection system, develop a function that determines the next possible suspicious pattern by finding the next greater number that can be formed by rearranging the digits of the original identifier. The system needs this to predict potential fraud patterns in real-time transaction monitoring, where each identifier represents a sequence of transaction events.
    

    """
def rearrange_bigger(n):
    """
    Given a transaction identifier number in a bank's fraud detection system, develop a function that determines the next possible suspicious pattern by finding the next greater number that can be formed by rearranging the digits of the original identifier. The system needs this to predict potential fraud patterns in real-time transaction monitoring, where each identifier represents a sequence of transaction events.
    

    """
    nums = list(str(n))
    for i in range(len(nums) - 2, -1, -1):
        if nums[i] < nums[i + 1]:
            z = nums[i:]
            y = min(filter(lambda x: x > z[0], z))
            z.remove(y)
            z.sort()
            nums[i:] = [y] + z
            return int(''.join(nums))
    return False