Computer Science, asked by satyamawasthi28860, 3 months ago

Write a program to define a method void show! )- to print the following series:
1, 5, 10, 17, 26.15 terms​

Answers

Answered by Sankalp050
7

Explanation:

सत्यमेव जयते नानृतम सत्येन पंथा विततो देवयानः। येनाक्रमंत्यृषयो ह्याप्तकामो यत्र तत् सत्यस्य परमम् निधानम्॥

Answered by Trishadevuzz
0

Answer:

Let's see.

5 - 2 = 3, 10 - 5 = 5, 17 - 10 = 7.

So, in the difference, we get 3, 5, and 7.

There are two different solutions to this:

Odd numbers: 3, 5, and 7 are all odd numbers. Using this method, we can add the next odd number or 9. The solution to this is 17 + 9 = 26.

Prime numbers: 3, 5, and 7 are also prime numbers. Through this method, we can add the next prime number or 11. Therefore, we get 17 + 11 = 28.

Therefore, the answer to this is either 26 or 28, depending on the method you prefer.

Similar questions