2 unsigned long i = 1, j = 1;
3 for (; i <= 1000000; ++i) {
4 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
5 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
6 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
7 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
9 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
10 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
11 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
12 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
14 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
15 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
16 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
17 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
19 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
20 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
21 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
22 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
24 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
25 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
26 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
27 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
29 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
30 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
31 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
32 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
34 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
35 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
36 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
37 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
39 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
40 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
41 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
42 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
44 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
45 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
46 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
47 j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;