Even, Odd and Total Number of Digits

Start with a number and count the number E of even and the number O of odd digits. Write them down next to each other following by their sum E + O. Treat the result as a new number and continue the process. In this example, iterations converge very rapidly. Moreover, in just a few steps they reach the number 123 which has exactly 3 digits of which 1 is even and two are odd. Therefore, applying the computations to 123 produces the number 123 itself, such that further iterations become really mindless. Of course we can always start with another number.

(In the applet below, most of the numbers are clickable so that you can change their values. The starting number may be looked at as a string of individual digits or as a long number depending on whether the Autonomous digits button is checked or unchecked.)

If you are reading this, your browser is not set to run Java applets. Try IE11 or Safari and declare the site https:///www.cut-the-knot.org as trusted in the Java setup.

Even, Odd and Total Number of Digits

What if applet does not run?

Why is it always 123?

|Contact| |Front page| |Contents| |Algebra|

Copyright © 1996-2018 Alexander Bogomolny