in reply to Challenge: Detecting sequences.

They used math!

Cheers Rolf

( addicted to the Perl Programming Language)