Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2011

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

Search the Archive

count zeros in a number

  • To: mathgroup at
  • Subject: [mg121789] count zeros in a number
  • From: dimitris <dimmechan at>
  • Date: Sun, 2 Oct 2011 02:36:47 -0400 (EDT)
  • Delivered-to:


Consider e.g. the number 24^24*55^55.
This number ends with exactly 55 zeros as the following demonstrate

In[201]:= Mod[24^24*55^55, 10^55]
Mod[24^24*55^55, 10^56]

Out[201]= 0
Out[202]= 20000000000000000000000000000000000000000000000000000000

What I want now is a way to count the zeros that a number ends without
knowing in advance this number of zeros like in the above example.

Thanks in advance.

  • Prev by Date: Re: HoldForm and Sum
  • Next by Date: Re: HoldForm and Sum
  • Previous by thread: Re: Finding if a graph G contains any clique of size N...
  • Next by thread: Re: count zeros in a number