Find three consecutive odd integers such that 10 times the first when added to the third is equal to the square of the second.