Let a = {x | x = n ^ 2-1, n ∈ Z} B = {x | x = k ^ 2 + 2K, K ∈ Z} if a ∈ a, judge the relationship between a and B

Let a = {x | x = n ^ 2-1, n ∈ Z} B = {x | x = k ^ 2 + 2K, K ∈ Z} if a ∈ a, judge the relationship between a and B

A={x|x=n²-1,n∈Z}={x|x≥-1,x∈Z}
B={x|x=k²+2k,k∈Z}={x|x=(k+1)²-1}={x|x≥-1,x∈Z}
So a = B