Answer:
Step-by-step explanation:
Count pairs (a, b) whose sum of squares is N (a^2 + b^2 = N)
Given a number N, the task is to count all ‘a’ and ‘b’ that satisfy the condition a^2 + b^2 = N.
Note:- (a, b) and (b, a) are to be considered as two different pairs and (a, a) is also valid and to be considered only one time.
Examples:
Input: N = 10
Output: 2
1^2 + 3^2 = 9
3^2 + 1^2 = 9
Input: N = 8
Output: 1
2^2 + 2^2 = 8
Answer:
x = 3
Step-by-step explanation:
we can use the Pythagorean theorem to solve this problem
x^2 + 4^2 = 5^2
x^2 + 16 = 25
x^2 = 9
x = +/- 3
we take only the positive value because a length can‘t be negative
x = 3
The answer would be 12x^3+ 2x + 4
Answer:
=1.23*10^6
Step-by-step explanation:
We have to calculate
(1.93*10^7 )-(9.7*10^6)
In order to add or subtract two numbers in scientific notation, we have to make sure that the power of exponents in both numbers is same.
We have to reduce the power of 10 in first number from 7 to 6
So,
Step 1:
1.93*10^7=1.93*10*10^6
=10.93*10^6
Now,
Step 2:
=(1.93*10^7 )-(9.7*10^6 )
= 10.93*10^6- 9.7*10^6
Step 3:
=(10.93-9.7)*10^6
=1.23*10^6