A={a1,a2,a3,⋯,a7}
A1={a1+a2,a2+a3,a3+a4,⋯,a6+a7}
A2={a1+a2+a2+a3,a2+a3+a3+a4,⋯,a5+a6+a6+a7}
⋯⋯⋯⋯
⋯⋯⋯⋯
Here elements of set A are positive integers. Set Am is formed in given ways such that the set has only one element. What is the value of m? Find the maximum value of the element of set Am such that element of set does not exceed 2022.