Computer Science, asked by subh119, 1 year ago

Program to find nth term in the series 0, 2, 1, 3, 1, 5, 2, 7, 3,

Answers

Answered by roop286
0

Answer:

program to find nth term in the series 0,2,1,3,1,5,2,7,3.

If it is odd, set N = ( N/ 2) + 1 ( Since there are two series running parallelly) and find the Nth Fibonacci number. If is even, Simply set N =N/2and find Nth prime number .

Similar questions