The largest a such that 7a divides (k2k) is equal to the number of carries when you add k+k in base 7, by Kummer's Theorem. Thus, we need two carries, so 2k must have at least 3 digits in base 7. Hence, 2k≥49, so k≥25. We know k=25 works because 25+25=347+347=1017 has two carries.
Source: MathNet,
licensed CC-BY-4.0.
Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.