Research on the collatz function