Tag Archives: loop

Iterating squared digit sum

Another fun fact I learned from John Cook. Let be the function which takes a positive integer and outputs the sum of the squares of its digits. For example, . Since the output is itself another positive integer, we can … Continue reading

Posted in arithmetic, computation, proof | Tagged , , , , , | 10 Comments