#include <bits stdc++.h> using namespace std; int v[10] = {1, 6, 28, 88, 198, 328, 648}, e[10] = {8, 18, 28, 58, 128, 198, 388}; int main() { int T, n; scanf("%d", &amp;T); while (T--) { scanf("%d", &amp;n); int res = 0; for (int i = 0; i &lt; (1 &lt;&lt...