def collatz(n):
    """[Collatz Sequence - A006370](https://oeis.org/A006370)
    
    Args:
        n (Integer): Current Value of the Collatz Sequence
    
    Returns:
        Integer: Result of the next value in the Collatz Sequence following n
    """

    if n % 2 == 0:
        return n / 2
    else:
        return 3 * n + 1