This text is missing some spaces, please add them: Eachoftheterms(kq-1)isastringof(k-1)'s,hhh…h,whichisequalto(k-1)(111…1).
Each of the terms (kq-1) is a string of (k-1)'s, hhh…h, which is equal to (k-1)(111…1).