(Atomic number: La = 57, Gd = 64, Lu = 71)
$[\text{Xe}]\ 5\text{d}1\ 6\text{s}2\ \ \ \ \ \ \ \ \ \ [\text{Xe}]\ 5\text{d}\ 0\ 6\text{s}0\\\ \ \ \ \ \ \ \ \ \ \ \ _{64}\text{Gd}\xrightarrow{\ \ \ \ \ \ \ \ \ }\ _{61}\text{Gd}^{3+}$
$[\text{Xe}]\ 4\text{f}^7\ 5\text{d}^1\ 6\text{s}^2\ \ \ \ \ \ \ \ \ [\text{Xe}]\ 4\text{f}^7\ 5\text{d}^0\ 6\text{s}^0\\\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ _{71}\text{Lu}\xrightarrow{\ \ \ \ \ \ \ \ \ \ }{68}\text{Lu}^{3+}$
$[\text{Xe}]\ 4\text{f}^{14}\ 5\text{d}^1\ 6\text{s}^2\ \ \ \ \ \ \ \ [\text{Xe}]\ 4\text{f}^{14}\ 5\text{d}^0\ 6\text{s}^0$
From their electronic configurations, we find that La3+, Gd3+ and Lu3+ have empty, exactly half-filled and fully filled valency shells, respectively, which make them extra stable.
