Sort:  

Thanks for the tip, I've got it now- 7. You sum the digits of the previous value and then add 1.