Atul And His Anger - A
Practice
5 (1 votes)
Easy
Problem
36% Success 483 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code

Atul is a very short tempered boy and loses his calm very quickly and frequently. Generally, the anger level of Atul always remains 2. But whenever anyone irritates him, his anger level increases at a very rapid rate. One day, his arch enemy Divyansh having irritating capacity of n irritated him which resulted in the increment of Atul's anger. The anger level of Atul increased in the following manner -
If 'n' is the irritating capacity of Divyansh and a,b,c,d... and so on are its even non-prime divisors then his anger level increased to ((((2^a)^b)^c)^d)... and so on.

INPUT

The irritating capacity of Divyansh is : 36 .

OUTPUT

Ouput the increased anger level of Atul . As anger level can be quite large , print it modulo 109 +7 .

  • To see how to submit solution please check this link

Compile and Test can give Wrong Answer. Once you have written your answer, press Submit button to check your result.

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
2 votes
Tags:
inverse-moduloEasymath
Points:20
30 votes
Tags:
Modular arithmeticad-hocNumber TheoryEasyMathematicsBrute-force search簡単
Points:20
3 votes
Tags:
MathematicsModular arithmeticEasy
Editorial

No editorial available for this problem.