Divisors [II]
The blurb for this problem is the same as Divisors [I], save for the statement of the problem.
Consider the sequence of all natural numbers, and then for each number, listing each of the divisors of this number in increasing order:
becomes:
Since this (infinite) sequence has a lot of duplicates, we can notate for each digit whether it is the first, second, third... occurence using a subscript:
For the second problem, we'd like to find the exact index of a particular value. For example, has index 1, has index 2, has index 3, and so on.
Input
Input will contain a single value i_j
, representing value
Output
Output a single integer representing the 1 index of the value in the sequence
Constraints
Example
Input
5_1
Output
10
Comments