Q: 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 ?
A:
25