Let us start from the probability of winning when $n = 1$. This can only happen when the first toss of the die results in a 1. We lose if it does not end up on 1. So, the probability of winning with $n = 1$ is $1/6$,
$$
P(1)=\frac{1}{6} \approx 0.1667\;.
$$
When $n=2$, we can win if the first toss results in a 2, which has probability $1/6$, or if the first toss results in a 1 and the second toss results in a 1. Note that if the first toss results in 1, the probability of winning with the second toss is $P(1)$,
$$
P(2)=\frac{1}{6} + \frac{1}{6}P(1) = \frac{7}{6}P(1) = \frac{7}{6^2} \approx 0.1944\;.
$$
For $n=3$, if the first toss results in a 3, we win with probability $1/6$. If the first toss results in a 2, we win with probability $1/6 * P(n=1)$ because the probability of getting a 2 in the first toss is $1/6$ and the probability of getting from 2 to 3 in the subsequent tosses is $P(n=1)$. Similarly, if the first toss results in a 1, we win with probability $1/6 * P(n=2)$ because the probability of getting 1 in the first toss is $1/6$ and the probability of going from 1 to 3 in subsequent tosses is $P(n=2)$. Summing the probabilities of these three cases, we get,
$$
P(3)=\frac{1}{6} + \frac{1}{6}P(2) + \frac{1}{6}P(1) = \frac{7}{6}P(2) = \frac{7^2}{6^3} \approx 0.2269\;,
$$
where, in the second equality, we used the definition of $P(2)$. For $n=4, 5, 6$ we follow the same reasoning of splitting the probability of $P(n)$ based on the result of the first toss of the die to obtain,
$$
\begin{align}
P(4) &= \frac{1}{6} + \frac{1}{6}P(3) + \frac{1}{6}P(2) + \frac{1}{6}P(1) = \frac{7}{6}P(3) = \frac{7^3}{6^4} \approx 0.2647 \;, \\
P(5) &= \frac{1}{6} + \frac{1}{6}P(4) + \frac{1}{6}P(3) + \frac{1}{6}P(2) + \frac{1}{6}P(1) = \frac{7}{6}P(4) = \frac{7^4}{6^5} \approx 0.3088 \;, \\
P(6) &= \frac{1}{6} + \frac{1}{6}P(5) + \frac{1}{6}P(4) + \frac{1}{6}P(3) + \frac{1}{6}P(2) + \frac{1}{6}P(1) = \frac{7}{6}P(5) = \frac{7^5}{6^6} \approx 0.3602 \;.
\end{align}
$$
So far, the probabilities increased gradually from $n=1$ to $n=6$ and the maximum probability is P(6).
We can summarise the probabilities for $n$ from 1 to 6 as,
$$
P(n) = \frac{7}{6}P(n-1) = \frac{1}{7}\left(\frac{7}{6}\right)^n \,, \; n=1, 2, \ldots, 6 \;.
$$
For $n=7$, as we did before, we split the probability based on the result of the first toss of the die. If the first toss results in a 1 (probability 1/6), the probability to reach 7 in the remaining tosses is $P(7-1)=P(6)$. If the first toss results in a 2 (probability 1/6), the probability to reach 7 in the remaining tosses is $P(7-2)=P(5)$, and so on. So, we obtain,
$$
\begin{align}
P(7) &= \frac{1}{6}P(6) + \frac{1}{6}P(5) + \frac{1}{6}P(4) + \frac{1}{6}P(3) + \frac{1}{6}P(2) + \frac{1}{6}P(1) \\
&= \frac{1}{6} \left[ P(6) + P(5) + P(4) + P(3) + P(2) + P(1) \right] \;.
\end{align}
$$
Thus, $P(7)$ is the average of the probabilities of the previous 6 $n$'s. Since $P(6)$ is the highest probability in the sum in square brackets, the average is lower than $P(6)$. So, $P(7)$ is lower than $P(6)$. Indeed, if we carry out the calculation, we get $P(7) \approx 0.2536$.
We can apply the same reasoning to any $n \geq 7$ to obtain,
$$
P(n) = \frac{1}{6} \left[ P(n-1) + P(n-2) + P(n-3) + P(n-4) + P(n-5) + P(n-6) \right] \;.
$$
When $P(6)$ is present in the square brackets, it is the highest probability, meaning that the average is always smaller than $P(6)$. When $P(6)$ is not present in the square brackets, the highest probaility in the square brackets is lower than $P(6)$ and, as a consequence, the average is smaller than $P(6)$. Therefore, $n=6$ is the number with the highest probability of winning, which is approximately 36%.