I noticed relation between modulo operation and number which is power of two
Example I have to calculate $ 3431242341 \bmod 2^5 $, which is $ 5 $ but it is equivalent to $ ( 3431242341 \bmod 2^9 ) \bmod 2^5 $
I tried many examples and it seems to be true in general, and I am not sure if it is a coincidence or true in general that I can use first modulo operation ( greater number) and the result will be the same.
The phenomenon you observed holds in greater generality.
Suppose that $m$ and $n$ are positive integers such that $m$ divides $n$. Then for any integer $a$ we have $(a\bmod n)\bmod m= a\bmod m$.
Certainly $(a\bmod n)\bmod m$ is of the right size, between $0$ and $m-1$.
Since $a$ and $(a\bmod n)$ differ by a multiple of $m$, it follows that the remainder when $(a \bmod n)$ is divided by $m$ is the same as the remainder when $a$ is divided by $m$, which is what we needed to show.