Example #1
0
        public void Test_3cyclicPolygonal()
        {
            /*
             * The ordered set of three 4-digit numbers: 8128, 2882, 8281, has three interesting properties.
             *
             * The set is cyclic, in that the last two digits of each number is the first two digits of the next number (including the last number with the first).
             *  Each polygonal type: triangle (P3,127=8128), square (P4,91=8281), and pentagonal (P5,44=2882),
             * is represented by a different number in the set.
             * This is the only set of 4-digit numbers with this property.
             *
             *
             */
            var sut = new E061CyclicalFigurateNumbers();
            int sum = 8128 + 2882 + 8281;

            Assert.Equal(sum, sut.GetSumCyclic4DigitsNumber3());
        }