Use the change-of-base formula: for every base c>0, c=1,
loga(x)=logc(a)logc(x).
Choosing c=7 and a=3 gives
log3(x)=log7(3)log7(x).
In practice: divide the base-7 logarithm of the argument by the base-7 logarithm of the old base 3. Equivalently, log3(x)=log7(x)⋅log3(7), since log3(7)=log7(3)1.
log3(x)=log7(3)log7(x)