Pages : 1 ,
//a[contains(text(), 'Next.')]/preceding::a[contains(text(), '171')]
Explanation of xpath: Using text method along with tag and then move ahead with preceding keyword to locate the element 171
text
preceding
171