+0  
 
+12
843
1
avatar+232 

Alex writes down a string with four digits. (Since this is a string, not a number, it can start with a 0.For example, Alex could write 0472. ) Alex then feeds this string into a special counting machine, which counts the number of times the digits 0, 1, 2, and 3  appear in Alex's string, and then prints out the result.

For example, suppose Alex wrote 2322.  The machine counts the number of times  0 appears (which is 0 times), the number of times 1 appears (which is also 0 times), the number of times 2 appears (which is 3 times), and the number of times 3 appears (which is 1 time). So the machine prints out "0031".

As another example, if Alex writes the string 0702 then the machine prints out "2010".

Alex wants to see if there are any four-digit strings that they can write down, so that the string the machine prints out is the same as the string that they fed into the machine. We'll call this an automatic string.

(a) Find all automatic strings.
 

 Dec 19, 2019
edited by ramenmaster28  Dec 19, 2019
 #1
avatar
+1

Each digit of an automatic string must be 0, 1, or 2. That means d=0 and a+b+c=4
Furthermore, since the string contains at least one 0, so a is 1 or greater.

From here, it is not difficult to list all the strings which fulfill our requirements. 

\(\begin{array}{c|c} \text{Alex's string} & \text{Printout} \\ \hline 1120 & 1210 \\ 1210 & 1210 \\ 2020 & 2020 \\ 2110 & 1210 \\ 2200 & 2020 \end{array}\) 

The automatic strings are 1210 and 2020

 Dec 19, 2019

1 Online Users