Atom - - Order / Multiplicity

Characters:

Tags: math , number , vectorize

Arity: dyadic

This atom is dyadic, which means it takes two arguments.

Functionality

Return the number of times x is divisible by y.

Details

For example, 1134 ọ 3 returns 4 because 1134 = 3⁴ × 2 × 5. This takes its arguments in reverse order to (Divisibility) (this takes the divisor on the right), and returns a non-zero value if and only if x is divisible by y at least once, so if you only need to check truthiness, consider using this atom if you need the factor on the right.