Happy Number Problem

What is a happy number?




Ex: power = 3, mode = "multiply"

Result:

???