You start at $1$.
If you're at $1$ or a prime number you can only $+1$
Let's say you're on the number $12$ there is a $50$% chance to go to $12+1$ or $13$ and a $50$% chance to go to one the factors of $12$ not including $1$ or $12$ $(2,3,4,6)$ so there is a $12.5$% to go to $4$.
A possible walk would be $1,2,3,4,2,3,4,5,6,3,4,5,6,7,8,4,5,...$ after $4$ you have a $50$% chance to go to $5$ and a $50$% chance to go to $2$ because the only factor that isn't $1$ or $4$ is $2$.
$P_n(x)$ is the probability after $n$ steps you land on $x$.
My question is what is
$$f(k) = \lim_{n \to \infty} P_n(x)?$$
I doubt there is going to be anything approaching a closed form, but it is easy enough to find the limiting distribution.
You can say
So we can calculate these probabilities accurately even if we ignore the very low probability tail. For example, using R
where (as checks)
and we get the start of the stable distribution, i.e. $f(x)$, below.
This pattern is much as expected. $4$ is the most likely value, which makes sense as the first composite number, as well as being the median, and the mean
sum(matrixpower[1,]*(1:maxn))is $4.703738$.