In this paper, we consider the equation x2−Lnxy+(−1)ny2 = ±5r and determine the values of n for which the equation has positive integer solutions x and y. Moreover, we give all positive integer solutions of the equation x2−Lnxy+(−1)ny2 = ±5r when the equation has positive integer solutions.