yields True if n is divisible by m, and yields False if it is not.


  • Divisible[n,m] works for integers or rational numbers n and m.
  • Divisible works with exact numeric quantities, as well as explicit numbers.
  • Divisible works with exact complex numbers.
  • Divisible[n,m] yields True only if n/m is an integer.
  • Divisible[n,m] is effectively equivalent to Mod[n,m]==0.
  • For exact numeric quantities, Divisible internally uses numerical approximations to establish its result. This process can be affected by the setting of the global variable $MaxExtraPrecision.
  • Divisible[n,m] can be entered as .
  • can be entered as \[Divides] or divides.


open all close all

Basic Examples  (1)

Test whether 10 is divisible by 3:

Click for copyable input

Scope  (2)

Generalizations & Extensions  (5)

Applications  (3)

Possible Issues  (2)

Introduced in 2007