## Check whether a given Number is Power-Isolated or not

Given a integer N, with prime factorisation n1p1 * n2p2 …… The task is to check if the integer N is power-isolated or not. An… Read More »

## Compute power of power k times % m

Given x, k and m. Compute (xxxx…k)%m, x is in power k times. Given x is always prime and m is greater than x. Examples:… Read More »

## Given two numbers as strings, find if one is a power of other

Given two large numbers as strings, find if one is the power of another. For Example : Examples: Input : a = “374747”, b =… Read More »

## Check if given number is a power of d where d is a power of 2

Given an integer n, find whether it is a power of d or not, where d is itself a power of 2. Examples: Input :… Read More »

## Number of digits in N factorial to the power N

Given a positive integer N, we have to find the total number of digits in the factorial of N raised to the power N, i.e,… Read More »

## Writing power function for large numbers

We have given two numbers x and n which are base and exponent respectively. Write a function to compute x^n where 1 <= x, n… Read More »

## Write a program to calculate pow(x,n)

Given two integers x and n, write a function to compute xn. We may assume that x and n are small and overflow doesn’t happen.… Read More »