Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Numerical Evaluation & Precision > Representation of Numbers >
Mathematica > Core Language > Expressions > Expression Structure > Atomic Elements of Expressions > Representation of Numbers >

IntegerExponent

IntegerExponent[n, b]
gives the highest power of b that divides n.
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • IntegerExponent[n, b] gives the number of trailing zeros in the digits of n in base b.
The number of trailing zeros:
The highest power of 2:
Plot it:
Number of trailing zeros in factorials:
Powers of 2 in successive integers:
Find the highest power of 2 that appears in the factors of a number:
A "formula" for DigitCount:
New in 4
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team