How many digits will $ab^c$ have?

82 Views Asked by At

How many digits will $ab^c$ have?

I know that the digits of $b^c$ is calculated so:

$$\lfloor c \log_{10}b \rfloor +1$$

but what about $ab^c$ ?

1

There are 1 best solutions below

0
On BEST ANSWER

Since $\lfloor \log_{10} x\rfloor+1$ is the number of digits of $x$, where $x$ is an integer,

it follows that $\lfloor\log_{10}ab^c\rfloor+1=\lfloor\log_{10}a+c\log_{10}b\rfloor+1$.