\[c_{n}=\sqrt{a_{n}^{2}-g_{n}^{2}}.\]