This is LaTeX code:

[latex]
K_2(n)=K_2(n-1)+2(n-1)=^?K_2(n-1)+K_1(n-1)\\
K_2(1)=2
[/latex]