Describing patterns and sequences