Function ark_ff::fields::utils::k_adicity[][src]

pub fn k_adicity(k: usize, n: usize) -> u32
Expand description

Calculates the k-adicity of n, i.e., the number of trailing 0s in a base-k representation.