FR | EN
Quentin L. Meunier
Associate Professor in Computer Science at Sorbonne Université

Problem 1073

The members of this family of positive integers have the following characteristics

Fascinated by these properties, Bob observes the figures of the thousands of all these numbers (4th figure from the left). After having counted them, he writes in succession, from left to right, without separation, the number of 1 then the number of 2 which appear among the figures of the thousands.





For this problem, the program is simple because a naive enumeration does not pose a particular complexity issue, and the implementation is rather straightforward. There is no particular reason for using python.

The code is available here.




  • 1. 3194

  • 2. 4321165