![odalysesquermon](/avatars/27665.jpg)
odalysesquermon
06.05.2020 •
Mathematics
PLEASE ANSWER SOON. WILL MARK BRAINLIEST
Consider the following algorithm:
Step 1: Input a positive integer N.
Step 2: Begin with sum equal to 0 and n equal to 1.
Step 3: Find the n'th odd number, which is 2n-1, and increase sum by this odd number.
Step 4: Increase n by 1.
Step 5: If n > N, then stop and output sum. Otherwise, go back to step 3.
What number does this algorithm output if we input N = 6?
Solved
Show answers
More tips
- G Goods and services What Are the Most Popular Services?...
- O Other What is the oldest joke ever told?...
- L Legal consultation How to Properly Inherit: Tips and Recommendations...
- C Computers and Internet Boost your processor performance with these easy tips...
- S Sport How does Bodyflex work: what is it and how does it work?...
- H Health and Medicine How to Whiten Teeth and Get the Perfect Smile...
- S Style and Beauty How to Properly Apply Eye Makeup: Tips from a Professional Makeup Artist...
- A Auto and Moto How Can Parking Sensors Help Drivers?...
- C Computers and Internet Make Money Online: Secrets and Essential Ways...
- A Auto and Moto What is the Average Lifespan of an Engine in a Car?...
Answers on questions: Mathematics
- M Mathematics Detection in a binary symmetric channel (28 points) a signal x ∈ {0, 1} is transmitted through a binary symmetric channel with crossover probability p. assume x = 0 or 1 with equal...
- M Mathematics The perimeter of a rectangle is 42 inches. If the width of the rectangle is 6 inches, what is the length?...
- M Mathematics Should you choose video games over school...
- S Social Studies Refers to changes that result when groups come into continuous firsthand contact....
- S Social Studies If a woman had never experienced normal sexual functioning with her husband of 15 years, and had always had a problem with becoming aroused with him. She has found, however, that...
- C Chemistry Which expression represents the concentration of OH– ions in solution? a. [OH–] 10–14 b. 10–14 [H3O+] c. 10–14 [H3O+] d. 10–14 – [H3O+]...
Ответ:
Sum = 36
Step-by-step explanation:
N = 6
S = 0 n = 1
2(1) - 1 = 1
S = 0 + 1 = 1
n = n + 1
n = 1 + 1
n = 2
S = 1 n = 2
2(2) - 1 = 3
S = 1 + 3 = 4
n = n + 1
n = 2 + 1
n = 3
S = 4 n = 3
2(3) - 1 = 5
S = 4 + 5 = 9
n = n + 1
n = 3 + 1
n = 4
S = 9 n = 4
2(4) - 1 = 7
S = 9 + 7 = 16
n = n + 1
n = 4 + 1
n = 5
S = 16 n = 5
2(5) - 1 = 9
S = 16 + 9 = 25
n = n + 1
n = 5 + 1
n = 6
S = 25 n = 6
2(6) - 1 = 11
S = 25 + 11 = 36
n = n + 1
n = 6 + 1
n = 7 > N
Stop
Output:
S = 36
Ответ:
So, since we know the cost of one widget is $76, then the price of 350 widgets would be = $76 x 350 = $26,600.