#Q157. 「一本通 5.2 例 3」数字转换
「一本通 5.2 例 3」数字转换
Description
If the sum of the divisors (excluding itself) of a number , denoted as , is less than itself, then can be transformed into , and can also be transformed into . For example, can be transformed into , and can be transformed into . All transformations are constrained to positive integers not exceeding . Find the maximum number of transformation steps possible without repeating any numbers.
Input Format
Input a positive integer .
Output Format
Output the maximum number of transformation steps possible without repeating any numbers.
Sample 1
One possible transformation sequence is .
7
3
Data Range and Hint
For of the data, .