Since T(n) = n^2-n
and T(k) = 30
so T(k)=k^2-k=30
k^2-k-30=0
(k-6)(k+5)=0
k=6 or -5
checking:
sub k=6 in to k^2-k=30
L.H.S=(6)^2-6
=36-6
=30=R.H.S
so k=6 is a solution of the equation
sub k=-5 into k^2-k=30
L.H.S=(-5)^2-(-5)
=25+5
=30=R.H.S
so the solution of the equation is k=6 or -5