What is the largest of 3 consecutive integers such that the sum of the first and third is equal to three times the second.