Top answers


Find the integers n such that 4^(n)-1 is prime.

4^(n)-1 factors to (2^(n)-1)(2^(n)+1) by difference of two squares by definition of a prime (only has factors 1 and itself (given that itself isn't 1))So Exactly one of the brackets should = 1 for 4^(n)-1 to...
GH
Answered by George H. • Maths tutor
3598 Views

Give a segment of python code that will print the numbers 1 to 7, each one on a new line

for x in range(1,8) : print(x) The range(1,8) function gives us an array of numbers from 1 to 7. The number on the right is the upper bound of the numbers which is why only 1 to 7 is returned.From here, a fo...
JC
Answered by Jamie C. • Python tutor
4484 Views

Given that y = x^2 +2x + 3, find dy/dx.

We use a typical rule for polynomials in the form y = a x b , where a and b are real numbers. Also, for a polynomial equation y = a x b +c x d +.... , dy/dx = d( a x b )/dx + d(c x d )/dx + ...With this info...
JC
Answered by Jamie C. • Maths tutor
6411 Views

How to differentiate e^x . sin(x)

e x sin(x) is a product of two functions: e x and sin(x). This means we can use the product rule. Let e x = u and sin(x) = v The differential of uv is u'v + v'u where u' and v' are the two functions differen...
BW
Answered by Brent W. • Maths tutor
46009 Views

A bag contains only apple and oranges. The probability an apple is picked randomly is 1 in 5. The apple is returned, and five more apples are added to the bag. The probability of an apple being picked is now 1in 3. How many apples were there originally?

2 simultaneous unknown equations. Let x be the number of apples originally, and n the number of fruits in the bag in total originally. i) first scenario, where probability is 1/5, x/n = 1/5 5x= n ii) second ...
CL
Answered by Chloe L. • Maths tutor
4452 Views