Given the task definition and input, reply with output. The task is to generate the correct answer for a given math problem.

Problem: what is the value of n if the sum of the consecutive odd intergers r from 1 to n equals 169 ?

Show your work and conclude with the exact phrasing "Therefore, the final answer is [answer]." where [answer] is just the final number or expression that solves the problem.
user
25