Computer Science, asked by humpyhasa, 6 months ago

write a program to generate the first n terms in the series 1,3,4,8,15,27

Answers

Answered by Anonymous
2

Explanation:

Input: N = 7

Output: 1, 3, 4, 8, 15, 27, 50

Input: N = 3

Output: 1, 3, 4

Answered by juhipandey1000
0

Answer:

A Tribonacci series is represented by this series.The final three numbers in a Tribonacci series add up to the following word.As a result, the following term is = 8+15+27 = 50.

Explanation:

The Tribonacci series is what?

  • Each term from the fourth onwards is the sum of the previous three terms, making a8= 1+3+4.
  • 15= 3+4+8.
  • 27= 4+8+15.8= 1+3+4.
  • 15= 3+4+8.or series a sequence of integers.
  • T0=0, T1=T2=1, Tn=Tn-1+Tn-2+Tn-3 (n3) are the first three numbers in the Tribonacci sequence.Nth term of the Tribonacci series, pleaseThe conditional code decreases the value of n by 1, returning the original number rather than the decremented value, and then compares the original value to 3 using the > operator.1, 3, 4, 8, 15, 27.
  • A Tribonacci series is represented by this series.The final three numbers in a Tribonacci series add up to the following word.8= 1+3+4.
  • 15= 3+4+8.

27= 4+8+15.As a result, the following term is = 8+15+27 = 50

To learn more about  Tribonacci series refer

https://brainly.in/question/5796548

https://brainly.in/question/9842420

#SPJ2

Similar questions