Introduction - If you have any usage issues, please Google them yourself
Given a positive integer n, the integers a1, a2, ..., An. Consider the sequence of segments a1, a2, ..., AN (a subsequence of consecutive terms) consisting of perfect numbers. Find the largest of the lengths of the segment. Establish a procedure allowing to recognize the perfect number.