10^(9 − 6) is 1000 on the workbench. A magnitude-9 quake moves the ground a thousand times as far as a magnitude-6 at the same distance. That is what 'logarithmic' buys: the difference in magnitude is the exponent, and the ratio is its power of ten.
Run the question backwards and log(1000) returns 3 — the number of steps needed to reach a factor of a thousand. Plot y = log x against y = 3 and the crossing sits at x = 1000, the same fact in a different notation. Energy is a separate exponent: about 32 per magnitude, so those three steps are roughly 32768 in energy.
Answer
1000
How to read it
10^(9 − 6): the amplitude ratio between magnitude 9 and magnitude 6. Energy scales by about 32 per step instead.
Source
Charles Richter's 1935 magnitude scale is logarithmic in measured amplitude; one magnitude step is about a factor of 32 in energy
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.