Answer:
Any integer that can be expressed in the form of p/q where q 0 is referred to as a rational number in mathematics. Whenever a rational number is split, the output is a binary value either in ending or recurring decimal format.
It doesn’t matter whether the number sequence is positive or negative.
Both p and q become positive integers if indeed the rational number is positive.
When a rational number of the form -(p/q), either p or q has a negative value. That is, -(p/q) = (-p)/q = p/q (-q).
Let’s call the two numbers a and b, respectively.
a = 3 b = 4
We know that the rational integer that connects a and b is
(a + b) / 2
So (3+4)/2 = 7/2 is the rational number between 3 and 4.
Then, the Rational number between 3 and 7/2 = [3+(7/2)] / 2 = 13/4
Then, between 13/4 and 3, rational number = [(13/4) + 3]/2 = 25/8
Then Rational number between 4 and 7/2 = [4+(7/2)]/2 = 15/4
Then, between 13/4 and 4, rational number = [(13/4) + 4]/2 = 29/8
7/2, 13/4, 25/8, 15/4, and 29/8 are the five rational numbers between 3 and 4.