imagine you have a sequence of positive integers and positive or negative counts in pairs. E.g. (2,3), (1,-2), (2,-2), (1,2) which means 3 twos, -2 ones etc. I want to know if there any of the integers end up with a non-zero count. In this case 2 gets count 1 and 1 gets count 0 so the answer is yes. if I just let c equal the sum of the counts and z equal the sum of the product of the integers and counts I get c = 1 and z = 2