Problem

Source: 2011 Saudi Arabia Pre-TST November 1.1

Tags: number theory, consecutive



Set $A$ consists of $7$ consecutive positive integers less than $2011$, while set $B$ consists of $11$ consecutive positive integers. If the sum of the numbers in $A$ is equal to the sum of the numbers in $B$ , what is the maximum possible element that $A$ could contain?