Sum of decimal digits and repeated digit sum until one digit (digital root). Works on large integers as text.

Sum of digits25
Digital root7