Satyam P.

asked • 03/11/20

Alogorithms basic fundamentals questions please help me?

The numbers in the table below are the result of executing an algorithm that has one parameter N, a non-negative integer, and produces sequences of integers as outputs. For values of N from 0 to 5, the algorithm produces the following sequences of numbers as outputs:

Determine the algorithm that was used to generate the numbers in this table, and

  1. Write it down.
  2. Execute it for N = 6, and write down your result.

What is the sequence of numbers for N = 6?

(Give your answer as integers separated by single spaces.)


Farjana A.

this algorithm answer is 18 20 22 24 26 28 30 32 34 36 38 40 42 44
Report

07/06/20

1 Expert Answer

By:

Patrick B. answered • 03/11/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.