Nuclear magnetic moment
The nuclear magnetic moment is the magnetic moment of an atomic nucleus and arises from the spin of the protons and neutrons. It is mainly a magnetic dipole moment; the quadrupole moment does cause some small shifts in the hyperfine structure as well. All nuclei that have nonzero spin also possess a nonzero magnetic moment and vice versa, although the connection between the two quantities is not straightforward or easy to calculate. The nuclear magnetic moment varies from isotope to isotope of an element. For a nucleus of which the numbers of protons and of neutrons are  both even in its ground state (i.e. lowest energy state), the nuclear spin and magnetic moment are both always zero. In cases with odd numbers of either or both protons and neutrons, the nucleus often has nonzero spin and magnetic moment. The nuclear magnetic moment is not sum of nucleon magnetic moments, this property being assigned to the tensorial character of the nuclear force, such as in the case of the most simple nucleus where both proton and neutron appear, namely deuterium nucleus, deuteron. Measurement methods. The methods for measuring nuclear magnetic moments can be divided into two broad groups  in regard to the interaction with internal or external applied fields. Generally the methods based on external fields are more accurate. Different experimental techniques are designed in order to measure nuclear magnetic moments of a specific nuclear state. For instance, the following techniques are aimed to measure magnetic moments of an associated nuclear state in a range of life-times τ: Techniques as Transient Field have allowed measuring the "g" factor in nuclear states with life-times of few ps or less. Shell model. According to the shell model, protons or neutrons tend to form pairs of opposite total angular  momentum. Therefore, the magnetic moment of a nucleus with even numbers of each protons and neutrons is zero, while that of a nucleus with an odd number of protons and even number of neutrons (or vice versa) will have to be that of the remaining unpaired nucleon. For a nucleus with odd numbers of each protons and neutrons, the total magnetic moment will be some combination of the magnetic moments of both of the "last", unpaired proton and neutron. The magnetic moment is calculated through "j", "l" and "s" of the unpaired nucleon, but nuclei are not in states of  well defined "l" and "s". Furthermore, for odd–odd nuclei, there are two unpaired nucleons to be considered, as in deuterium. There is consequently a value for the nuclear magnetic moment associated with each possible "l" and "s" state combination, and the actual state of the nucleus is a superposition of these. Thus the real (measured) nuclear magnetic moment is between the values associated with the "pure" states, though it may be close to one or the other (as in deuterium). Section::::"g"-factors. The "g"-factor is a dimensionless factor associated to the nuclear magnetic moment. This parameter contains the sign of  the nuclear magnetic moment, which is very important in nuclear structure since it provides information about which type of nucleon (proton or neutron) is dominating over the nuclear wave function. The positive sign is associated to the proton domination and the negative sign with the neutron domination. The values of "g" and "g" are known as the "g"-factors of the nucleons. The measured values of g for the neutron and the proton are according to their electric charge. Thus, in units of nuclear magneton, for the neutron and for the proton. The measured values of "g" for the neutron and  the proton are twice their magnetic moment (either the neutron magnetic moment or the proton magnetic moment). In nuclear magneton units, for the neutron and for the proton. Gyromagnetic ratio. The gyromagnetic ratio, expressed in Larmor precession frequency formula_7, is of great relevance to nuclear magnetic resonance analysis. Some isotopes in the human body have unpaired protons or neutrons (or both, as the magnetic moments of a proton and neutron do not cancel perfectly) Note that in the table below, the measured magnetic dipole moments, expressed in a ratio to the nuclear magneton, may be divided by the half-integral  nuclear spin to calculate dimensionless g-factors. These g-factors may be multiplied by MHz/T, which is the nuclear magneton divided by Planck's constant, to yield Larmor frequencies in MHz/T. If divided instead by the reduced Planck constant, which is 2π less, a gyromagnetic ratio expressed in radians is obtained, which is greater by a factor of 2π. The quantized difference between energy levels corresponding to different orientations of the nuclear spin formula_8. The ratio of nuclei in the lower energy state, with spin aligned to the external magnetic field, is determined by the Boltzmann distribution. Thus , multiplying the dimensionless g-factor by the nuclear magneton ( eV·T) and the applied magnetic field, and dividing by Boltzmann's constant ( eV⋅K) and the Kelvin temperature. Calculating the magnetic moment. In the shell model, the magnetic moment of a nucleon of total angular momentum "j", orbital angular momentum "l" and spin "s", is given by Projecting with the total angular momentum j gives formula_11 has contributions both from the orbital angular momentum and the spin, with different coefficients g and g: by substituting this back to the formula above and rewriting For a single nucleon formula_14. For formula_15 we get  and for formula_17