7. For each of these lists of integers, provide a simple formula or rule that generates the terms of an integer sequence that begins with the given list. Assuming that your formula or rule is correct, determine the next three terms of the sequence. a. 3,6,11,18,27,38,51,66,83,102,... b. 7,11,15,19,23,27,31,35,39,43,... c. 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, . . .

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 7SA
icon
Related questions
Question

7. For each of these lists of integers, provide a simple formula or rule that generates
the terms of an integer sequence that begins with the given list. Assuming that
your formula or rule is correct, determine the next three terms of the sequence.
a. 3,6,11,18,27,38,51,66,83,102,...
b. 7,11,15,19,23,27,31,35,39,43,...
c. 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, . . .
d. 1,2,2,2,3,3,3,3,3,5,5,5,5,5,5,5,...
e. 0, 2, 8, 26, 80, 242, 728, 2186, 6560, 19682, . . .
f. 1,3,15,105,945,10395,135135,2027025, 34459425, . . .
g. 1,0,0,1,1,1,0,0,0,0,1,1,1,1,1,...
h. 2, 4, 16, 256, 65536, 4294967296, . . . 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Mergesort
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning