tiny-tim said:
see what you have to prove: if any number has a divisor other than 3, including itself, then 1 + 2n + 4n is not prime…
... although of course 27 has a divisor other than {1,3,27} - it is divisible by 9, which is not 3.
Actually what you have to prove is that if n has any factor >1 that is not a
multiple of 3, m(n) is not prime. Which is why I was talking about k=(1 or 2) mod 3.
You might find this useful... my home-brewed factor-finder in Excel doesn't like bigger numbers, I'm afraid, although I'm aware that there are better facilities around. Still it gave me lots of useful clues.
\begin{array}{c | c | l l l l l }
n & m(n) & factors \\
1 & 7 & 7 \\
2 & 21 & 3 & 7 \\
3 & 73 & 73 \\
4 & 273 & 3 & 7 & 13 \\
5 & 1057 & 7 & 151 \\
6 & 4161 & 3 & 19 & 73 \\
7 & 16513 & 7 & 7 & 337 \\
8 & 65793 & 3 & 7 & 13 & 241 \\
9 & 262657 & 262657 \\
10 & 1049601 & 3 & 7 & 151 & 331 \\
11 & 4196353 & 7 & 599479 \\
12 & 16781313 & 3 & 19 & 37 & 73 & 109 \\
13 & 67117057 & 7 & 79 & 121369 \\
14 & 268451841 & 3 & 7 & 7 & 337 & 5419 \\
15 & 1073774593 & 73 & 631 & 23311 \\
\end{array}