Finding duplicate sequence numbers