D. 练46.4 第N个智慧数

    Type: Default 1000ms 64MiB

练46.4 第N个智慧数

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

A positive integer is called a "smart number" if it can be expressed as the difference of squares of two positive integers. For example, 1616 equals 52325^2 - 3^2, so 1616 is a smart number. In the sequence of natural numbers starting from 11, we number the "smart numbers" in ascending order as 11, 22, 33, ..., nn. Given a positive integer nn, output the nn-th "smart number".

Input Format

The input contains a single positive integer nn (1n1001≤n≤100).

Output Format

Output a single positive integer representing the nn-th "smart number".

Sample

3
7

20251025B班作业(4)

Not Claimed
Status
Done
Problem
4
Open Since
2025-10-25 0:00
Deadline
2025-11-2 23:59
Extension
24 hour(s)