1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vazorg [7]
2 years ago
14

Please I need a quick answer to these questions. Thank you so much!​

Mathematics
1 answer:
Gelneren [198K]2 years ago
5 0
The answer is 75
!!;&:’djdndjjejmdmkr
You might be interested in
5. The recursive algorithm given below can be used to compute gcd(a, b) where a and b are non-negative integer, not both zero.
s2008m [1.1K]

Implementating the given algorithm in python 3, the greatest common divisors of <em>(</em><em>124</em><em> </em><em>and</em><em> </em><em>244</em><em>)</em><em> </em>and <em>(</em><em>4424</em><em> </em><em>and</em><em> </em><em>2111</em><em>)</em><em> </em>are 4 and 1 respectively.

The program implementation is given below and the output of the sample run is attached.

def gcd(a, b):

<em>#initialize</em><em> </em><em>a</em><em> </em><em>function</em><em> </em><em>named</em><em> </em><em>gcd</em><em> </em><em>which</em><em> </em><em>takes</em><em> </em><em>in</em><em> </em><em>two</em><em> </em><em>parameters</em><em> </em>

if a>b:

<em>#checks</em><em> </em><em>if</em><em> </em><em>a</em><em> </em><em>is</em><em> </em><em>greater</em><em> </em><em>than</em><em> </em><em>b</em>

return gcd (b, a)

<em>#if</em><em> </em><em>true</em><em> </em><em>interchange</em><em> </em><em>the</em><em> </em><em>Parameters</em><em> </em><em>and</em><em> </em><em>Recall</em><em> </em><em>the</em><em> </em><em>function</em><em> </em>

elif a == 0:

return b

elif a == 1:

return 1

elif((a%2 == 0)and(b%2==0)):

<em>#even</em><em> </em><em>numbers</em><em> </em><em>leave</em><em> </em><em>no</em><em> </em><em>remainder</em><em> </em><em>when</em><em> </em><em>divided</em><em> </em><em>by</em><em> </em><em>2</em><em>,</em><em> </em><em>checks</em><em> </em><em>if</em><em> </em><em>a</em><em> </em><em>and</em><em> </em><em>b</em><em> </em><em>are</em><em> </em><em>even</em><em> </em>

return 2 * gcd(a/2, b/2)

elif((a%2 !=0) and (b%2==0)):

<em>#checks</em><em> </em><em>if</em><em> </em><em>a</em><em> </em><em>is</em><em> </em><em>odd</em><em> </em><em>and</em><em> </em><em>B</em><em> </em><em>is</em><em> </em><em>even</em><em> </em>

return gcd(a, b/2)

else :

return gcd(a, b-a)

<em>#since</em><em> </em><em>it's</em><em> </em><em>a</em><em> </em><em>recursive</em><em> </em><em>function</em><em>,</em><em> </em><em>it</em><em> </em><em>recalls</em><em> </em><em>the function</em><em> </em><em>with </em><em>new</em><em> </em><em>parameters</em><em> </em><em>until</em><em> </em><em>a</em><em> </em><em>certain</em><em> </em><em>condition</em><em> </em><em>is</em><em> </em><em>satisfied</em><em> </em>

print(gcd(124, 244))

print()

<em>#leaves</em><em> </em><em>a</em><em> </em><em>space</em><em> </em><em>after</em><em> </em><em>the</em><em> </em><em>first</em><em> </em><em>output</em><em> </em>

print(gcd(4424, 2111))

Learn more :brainly.com/question/25506437

6 0
2 years ago
Combine like terms. 5y - 8 - y
Svetlanka [38]
<h3>Question:-</h3>
  • Combine like terms. 5y - 8 - y

<h3>Answer:-</h3>
  • here like terms are 5y,-y
  • solving like terms
  • 5y-y-8(subtracting 5y-y)
  • 4y-8

hence the combination=

\bold {4y - 8}

All the best !

4 0
2 years ago
Read 2 more answers
H(x)=2x: Find (7)<br><br>please help​
erma4kov [3.2K]

Answer:

2(7) = 14

Step-by-step explanation:

When there is a number in the brackets, we want to input that into our function and get the output. In other words, we simply substitute 7 for x

2(7) = 14

3 0
3 years ago
a truck that can carry no more than 6400 lb is being used to transport refrigerators and upright pianos. Each refrigerator weigh
Tems11 [23]
I'm not going to do the entire question, but I'll do the first part.

For the first part, you have to set up an inequality. Use context clues, such as no more than (the one used in this sentence) to figure out what the symbol should be for the inequality.
In this case, because it is NO MORE THAN 6400, it would be:

6400\leq250r + 475p

where r represents the # refrigerators, and p represents the # pianos


Now that you have the equation, make the graph, then for the 3rd part, plug in 12 and 8 to r and p to see if it keeps the inequality true.

Hope this helps! :)
7 0
3 years ago
Read 2 more answers
An arithmetic sequence is defined by the recursive formula t1 = 9, tn = tn - 1 - 4, where n ∈N and n &gt; 1. The sequence is
VikaD [51]
T2 = t1 - 4 = 9 - 4 = 5
t3 = 5 - 4 = 1
The common difference  = -4 so:-

The sequence is  9, 5, 1, -3, -7 ....
4 0
3 years ago
Other questions:
  • A survey asked a group of students to choose their favorite type of pet. The results of the survey are shown in the table.
    13·2 answers
  • An alligator population a nature preserve in the Everglades decreases by 60 alligators over five years. What is this mean yearly
    9·1 answer
  • What is 1/4 times 3/5?
    8·2 answers
  • How do u find square root
    6·2 answers
  • What is 1/4 + 2/4 <br> Good luck
    14·1 answer
  • Help me out with this one please
    14·2 answers
  • Which expression is equivalent to 5(x + 9)? 5x + 9<br><br> 5x + 45<br><br> x + 45<br><br> x + 9
    7·1 answer
  • The problem is 44+(7x+12)=180, what is x?
    11·2 answers
  • Simplify the expression.<br> 5 + 18 divided 3x2
    15·2 answers
  • Help me please and thank you
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!