mirror_index

Function mirror_index 

pub fn mirror_index(i: u64, n: u64) -> u64