A positive integer k is called a jimp number if there is exactly one triple of positive integers (a, b, c) such that a, b, and c are consecutive terms of an arithmetic progression (exactly in that order) and a2 + b2 + k = c2.
Count the jimp numbers which are not greater than the given number n.