//	Very cool compact piece of code to detect a sequence that repeats at least
    //	once.  I have seen some solutions that are a lot more complicated, however
    //	using RegExp is very cool.
    
    class Program
    {
        static void Main(string[] args)
        {
            string sequence = "2 0 3 6 2 1 5 5 5 1 9 8 4 5 5 5 2 4 3 8 6 3 1 5 5 5 5 5 5";
            string regexp = @"(?'cycle'(\d+\s)+(\d+))\s\k'cycle'";
            System.Text.RegularExpressions.Match m = System.Text.RegularExpressions.Regex.Match(sequence, regexp);
            if (m.Success)
            {
                Console.WriteLine(m.Groups["cycle"]);
            }
            Console.ReadKey();
        }
    }