You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Recursive Formula: DigitalRoot(n)= n if n<10 else if digitalRoot(sumOfDigits)
*
* @param {number} n
* @returns {number}- digital root of n
* @description
* The digital root of a non-negative integer is the single digit value obtained by an iterative process of summing digits, on each iteration using the result from the previous iteration to compute a digit sum. The process continues until a single-digit number is reached.