Computer Science, asked by rojablessy555, 4 months ago

Avanthika is weak ij the concepts of number series.she is given a number L and has to find L terma of the series ..The series is as follows ..1,2,5,8,15...

Answers

Answered by pbhavanibhavani954
4

Answer:

1 2 5 8

1 2 5 8 15

1 2 5 8 15 28

Explanation:

you are given a integer p denoting a number of test cases .the next sequence consists of a number of terms till it need tobe printed

Answered by brainlysme10
0

Answer: 1, 2, 5, 8, 15, 28, 51, 94, and so on.

Explanation:

Logic behind the series formation :-

Let a= 1, b=2, c=5

From the fourth number, add 3 digits preceding it, and the number L can be found from the series.

  • 8=5+2+1
  • 15=8+5+2
  • 28=15+8+5
  • 51=28+15+8
  • 94=51+28+15
  • and so on.
Similar questions