ROSECODE 385
A mysterious machine
Given a string representing a positive integer, the machine outputs another string using the following rules:
Rule 1 : If the input is 2X, the output will be X.
Find X such as M(X) = X
Find Y such as M(Y) = Y2Y
Find Z such as M(Z) = 7Z
Answer format:
[My timing: pencil and paper]
Rule 1 : If the input is 2X, the output will be X.
E.g: M(234) => 34Rule 2 : If the input is 3X and M(X) = Y the output will be Y2Y.
E.g: M(327) = 727
Find X such as M(X) = X
Find Y such as M(Y) = Y2Y
Find Z such as M(Z) = 7Z
Answer format:
[My timing: pencil and paper]