#include <iostream> #include <string> using namespace std; /* 10 begin: 2x + 2 = 10 -- 3 2x + 2 = 4 -- 3 x = 1 -- 2 */ void getN(int x, string& s) { if (x == 1) s = '2' + s; if (x == 2) s = '3' + s; if (x > 2) { if ((x - 1) % 2 == 0) { s = '2' + s; getN((x - 1) / 2, s); } else if ...