MathDB
2018 COMC C4

Source:

December 6, 2018
Comc2018 COMC

Problem Statement

Source: 2018 Canadian Open Math Challenge Part C Problem 4 —--
Given a positive integer NN, Matt writes NN in decimal on a blackboard, without writing any of the leading 0s. Every minute he takes two consicutive digits, erases them, and replaces them with the last digit of their product. Any leading zeroes created this way are also erased. He repeats this process for as long as he likes. We call the positive integer MM obtainable from NN if starting from NN, there is a finite sequence of moves that Matt can make to produce the number MM. For example, 10 is obtainible from 251023 via 25102325106106102510\underline{23}\rightarrow\underline{25} 106\rightarrow 1\underline{06}\rightarrow 10 (a)\text{(a)} Show that 2018 is obtainablefrom 2567777899. (b)\text{(b)} Find two positive integers AA and BB for which there is no positive integer CC (B.) such that both AA and BB are obtainablefrom CC (c)\text{(c)} Let SS be any finite set of positive integers, none of which contains the digit 5 (C.) in its decimal representation. Prove that there exists a positive integer NN (C.) for which all elements of SS are obtainable from NN.