MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: number of digits in n^p


George wrote:
> i wonder if there is a formula, a function, or a method in mathematica to know the number of digits in  n raised to the power of p without calculating the result, such as 67^89 will give us a number with 163 digits in it, is there a way to know this result without actually calculating 67^89
> thanks
> George

Hi George,

Is this what you are looking for?

In[1]:=
Plus @@ DigitCount[67^89]

Out[1]=
163

Best regards,
/J.M.


  • Prev by Date: Re: solve for a squared variable
  • Next by Date: 5.2 Install issues
  • Previous by thread: Re: number of digits in n^p
  • Next by thread: Re: number of digits in n^p