WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

IntegerExponent [n,b]

gives the highest power of b that divides n.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Applications  
Properties & Relations  
Neat Examples  
See Also
Tech Notes
Related Guides
Related Links
History
Cite this Page

IntegerExponent [n,b]

gives the highest power of b that divides n.

Details

Examples

open all close all

Basic Examples  (3)

The number of trailing zeros:

The highest power of 2:

Plot it:

Applications  (2)

Number of trailing zeros in factorials:

Powers of 2 in successive integers:

Properties & Relations  (1)

Find the highest power of 2 that appears in the factors of a number:

Neat Examples  (1)

A "formula" for DigitCount :

History

Introduced in 1999 (4.0)

Wolfram Research (1999), IntegerExponent, Wolfram Language function, https://reference.wolfram.com/language/ref/IntegerExponent.html.

Text

Wolfram Research (1999), IntegerExponent, Wolfram Language function, https://reference.wolfram.com/language/ref/IntegerExponent.html.

CMS

Wolfram Language. 1999. "IntegerExponent." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/IntegerExponent.html.

APA

Wolfram Language. (1999). IntegerExponent. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IntegerExponent.html

BibTeX

@misc{reference.wolfram_2025_integerexponent, author="Wolfram Research", title="{IntegerExponent}", year="1999", howpublished="\url{https://reference.wolfram.com/language/ref/IntegerExponent.html}", note=[Accessed: 24-November-2025]}

BibLaTeX

@online{reference.wolfram_2025_integerexponent, organization={Wolfram Research}, title={IntegerExponent}, year={1999}, url={https://reference.wolfram.com/language/ref/IntegerExponent.html}, note=[Accessed: 24-November-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /