ark_ff::fields::utils

Function k_adicity

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

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