35. (1985 American Mathematical Invitation Contest) Let the four vertices of a regular tetrahedron be $A, B, C, D$, with each edge length being 1 meter. A small insect starts from point $A$ and moves according to the following rule: at each vertex, it chooses one of the three edges connected to that vertex with equal probability, and crawls all the way to the end of the chosen edge. Suppose the probability that the insect is exactly at vertex $A$ after crawling 7 meters is $p=\frac{n}{729}$. Find the value of $n$.