1

I'm trying to evaluate the following scenario:

$$7^b \equiv 9\pmod {17}$$

Find the smallest value for b in which the equivalence holds true.

I know that we can rewrite this as :

$$17 \mid (7^b - 9)$$

But I'm not sure how to continue, could anyone help me out?

Thanks in advance.

Thomas Andrews
  • 177,126

1 Answers1

2

Calculate, reducing modulo $17$ each time. And I like to use negative numbers when they make the arithmetic simpler.

We have $7^2\equiv -2$, and therefore $7^3\equiv -14\equiv 3$. Now do you see it's almost over?

Remark: There is general theory. If you are interested, please look at Wikipedia, Discrete Logarithm. But the general theory in this case would involve much more work than the modified brute force approach that we took.

André Nicolas
  • 507,029