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
SpyIntel [72]
3 years ago
11

The peiod to the left of thousands

Mathematics
1 answer:
tester [92]3 years ago
5 0
The answer is millions
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
I do t o wish she sksnheisnmakakabs nsjd
dusya [7]

Answer:

x=-12

Step-by-step explanation:

(-22 + 3x) /( 3x+7) =2

Multiply each side of the equation by 3x+7

-22+3x = 2(3x+7)

Then distribute

-22 +3x = 6x+14

Subtract 3x from each side

-22 = 3x+14

Subtract 14 from each side

-36 = 3x

Divide by 3

-12 =x

7 0
3 years ago
Variance is_________.
katrin [286]

Answer:

B

Step-by-step explanation:

Variance can be said to be a measure of dispersion for a random sample.

Variance = pq/n

When given the variance, we can find the standard deviation.

Standard deviation = √variance

= √pq/n

3 0
3 years ago
The square numbers can be defined by the recursive formula a1 = 1, and an = an-1 + (2n - 1), where n &gt; 1. The first five squa
liberstina [14]
<span>1, 4, 9, 16, and 25. Use the formula to get a2 = 1 + (2*2 - 1) = 4, a3 = 4 + (2*3 - 1) = 9, etc. Also notice that for all n, an = n2.</span>
4 0
3 years ago
Read 2 more answers
Rhombus A has a base of 7 inches and an area of 35 square inches. Rhombus B has a base and height that are three times the base
STALIN [3.7K]
For rhombus A:
base = 7 in
area = 35 in²

Area of rhombus = b * h
⇒ 35 = 7 * h
⇒ h = 35/7
⇒ h = 5 in

Rhombus B:
height = 3*5 = 15 in
base = 7*3 = 21 in
Area = 15 * 21 = 315 in²

Area of rhombus B is 9 times area of rhombus A. When the dimensions are increased to 3 times the initial dimension, area became 9 times.

8 0
3 years ago
Read 2 more answers
Other questions:
  • 26% rounds to 25%, which is equivalent to what fraction?
    14·2 answers
  • How to solve 4+|7-m|=5
    9·1 answer
  • Factor 18bc + 9ab + 3cb completely.
    9·1 answer
  • Is 42 a factor of 7??
    13·2 answers
  • There are 205 coins in a jar all of which are either nickles or quarters . The vaule of the coin in the jar is $31.85. if both o
    7·1 answer
  • Find the GCF of the equation 18x^3 +3x^2-6x
    8·1 answer
  • A streetlamp has a 20 ft shadow that makes a 40° angle with the ground. which expression represents the height of the street lam
    5·1 answer
  • Jake opened up an account with $300 and
    14·2 answers
  • Find the area of the trapezoid, I will give brainlist. If you can please explain how you got the answer
    5·1 answer
  • Problem referred below <br> pls help
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!