Question
Calculate the difference between number of factors and sum
of factors of 396.Solution
Since, 396 = 2 2 X 3 2 X 11
So, number of factors = (2 + 1) X (2 + 1) X (1 + 1) = 3 X 3 X 2 = 18
If number is written as X a X Y b X Z c , then its sum of factors (N) is given as:
N = [(X (a + 1) - 1)/(X - 1)] X [(Y (b + 1) - 1)/(Y - 1)] X [(Z (c + 1) - 1)/(Z - 1)]
Sum of factors = [(2 (2 + 1) - 1)/(2 - 1)] X [(3 (2 + 1) - 1)/(3 - 1)] X [(11 (1 + 1) – 1)/(11 - 1)] = 7 X 13 X 12 = 1092
Required difference = 1092 - 18 = 1074
What will be the output of the code
int main(){
int x= 10;
int y=10;
int s=-(-x-y)
cout<
return 0;
}
In a virtual memory system, what is a "page fault"?
Which type of transistor is less susceptible to thermal runaway?
What is the unit of electric current?
Which transport layer protocol provides connection-oriented, reliable, and ordered delivery of data packets between applications?
The result of SQL select statement is?
What is an ER diagram used for?
Which routing protocol is commonly used within an autonomous system (AS) to determine the best path for data packets?
Which distribution is used to model the number of successful outcomes in a fixed number of independent Bernoulli trials?
Which component in the MVC architecture communicates directly with the database?