Magnetic moments of long isotopic chains