I'm sorry for my bad english. English is not my main language.
I've been trying to study this and its patterns for a while.
You can see this in many ways, but the first way I saw this was from a geometrical point of view. I saw this as convexes polygons. Firstly you'll say it has $n$ vertices, and display them from $0$ to $n-1$ in any direction. Then you'll go the vertex of the position you are $+1$, then $+2$, then $+3$ and so on.
For example let's say that $n=5$. Then You'll have:
$$
-\:\: 0\:\: 1\:\: 2\:\: 3\:\: 4
$$
You start from $0$, then go to $0+1= 1$, then you go to $1+2 = 3$ etc.
Then you go to $3+3 = 6$. Note that if you represent this as a polygon you go back to $1$, since $$6 ≡ 1 \mod 5.$$
Eventually, if you keep doing these modulo sums, it results in a total of 3 vertices that you've passed through: 0,1,3. And lets put ${V(5) = 3}$.
Here's something I coded
- https://repl.it/@lehydra/PoligonosProblema
If you're not familiar with repl.it, its quite easy. Just click in "RUN" and give your "n" for the problem.
The first thing I noticed was that $2^n$ polygons they reached all vertices.
Somehow the $n=2$ case is special. If, for example, you want to know
$$
V(6) = V(2) \cdot V(3).
$$
and $V(2)=2$
Multiplication seems working when you use even numbers. Another example:
$$V(34) = 18,\quad V(17\cdot2) = V(17) \cdot V(2),$$
and $V(17) = 9$.
That might be the reason that $2^n$ polygons reach all vertices, since
$V(2^n)$ is obtained as the $n$-fold product of $V(2)$ by itself. So its reasonable that it reaches all vertices.
Can anyone please help me find a better explanation and help me to dig this out?
Also, what if I need to calculate $V(n)$ when $n$ is odd? What's the way or expression to get there?
If you're confused, this might help. https://prnt.sc/pitus0