Here we calculate the order of $2$ in $(\mathbb{Z}/{41}\mathbb{Z})^\times$.
Note: When calculating you can use the previous work to your advantage. To really cut down on the calculations, if you know the order is greater than or equal $10$, once you calculate $2^{10} \pmod{41}$ you are done,
$\quad 2^{10} \equiv 1 \pmod{41} \quad \text{order is } 10$
$\quad 2^{10} \equiv 40 \pmod{41} \quad \text{order is } 20$
$\quad \text{NOT }[2^{10} \equiv 1, 40 \pmod{41}] \quad \text{order is } 40$
Work Summary : $2^1 \equiv 2 \pmod{41}$.
The order of $2$ is one of $2,4,8,5,10,20,40$.
Work Summary : $2^2 \equiv 4 \pmod{41}$.
The order of $2$ is one of $4,8,5,10,20,40$.
Work Summary : $2^4 \equiv 16 \pmod{41}$.
The order of $2$ is one of $8,5,10,20,40$.
Work Summary : $2^5 = \equiv 32 \pmod{41}$.
The order of $2$ is one of $8,10,20,40$.
Work Summary : $2^8 \equiv 10 \pmod{41}$
The order of $2$ is one of $10,20,40$.
Work Summary : $2^{10} \equiv 40 \pmod{41}$
The order of $2$ is one of $20,40$.
Work Summary : $2^{20} \equiv 1 \pmod{41}$
The order of $2$ is equal to $20$.