If the third and seventh terms of an H.P. are 17 and 115 respectively, then the nth term of the same H.P. is