#P9076. [PA 2018] PIN
[PA 2018] PIN
Problem Description
This problem is translated from PA 2018 Trial Round PIN.
Bytie forgot the phone PIN. He remembers it consists of three distinct positive integers . The sum of these numbers is . Also, for every pair of numbers (among , , and ), one number is a multiple of the other.
Help him compute the number of possible triples he needs to check, so that he can decide whether it is worth wasting time trying PINs.
Input Format
One line contains a positive integer .
Output Format
Output one integer, the number of valid triples.
35
2
Hint
Explanation for Sample 1
There are two feasible triples: and .
Constraints
This problem uses bundled testdata.
For of the data, it is guaranteed that .
Translated by ChatGPT 5