For a positive integer \( n \), let \( S(n) \) be the sum of all decimal digits in \( n \), i.e., if \( n = n_1 n_2 \dots n_m \) is the decimal expansion of \( n \), then \( S(n) = n_1 + n_2 + \dots + n_m \). Find all positive integers \( n \) and \( r \) such that \( (S(n))^r = S(n^r) \).
GD Star Rating
loading...
loading...