Find three consecutive odd integers of which one half of the sum of the first and second equals the square of the difference of the third and the first.