I am trying to solve an exercise but I don't know how to do it at all :
Given $m,n \in \mathbb N$ with $m>n>0$
and $r = m \bmod n$
Find ($2^m-1) \bmod (2^n-1)$ (as a function of $r$)
I don't know at all where to start or what to do...
How can the value of the remainder help me to find the required result ?
Thank you.