#C9323. Nth Term of a Sequence
Nth Term of a Sequence
Nth Term of a Sequence
You are given a sequence defined by the formula $$T_n = n^2 + 1$$, where \(n\) is a positive integer (1-indexed). Your task is to compute the \(n\)th term of this sequence.
For example, when \(n=1\), the term is \(1^2+1=2\); when \(n=2\), the term is \(2^2+1=5\); and when \(n=4\), the term is \(4^2+1=17\).
Read the input from stdin and output the result to stdout.
inputFormat
The input consists of a single integer \(n\) (1-indexed), provided via stdin.
outputFormat
Output the \(n\)th term of the sequence as an integer to stdout.
## sample1
2