1,1,5,17,61,217,?,?.

Answer Posted / prasad shetty

773,2753

The logic looks like this
The number at position x will be
(number at x-1) * 3 + (number at x-2) *2

Is This Answer Correct ?    15 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

1720


What is a char in c?

552


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1012


How do you search data in a data file using random access method?

831


What are local static variables? How can you use them?

644






Is there a built-in function in C that can be used for sorting data?

742


What is time null in c?

579


What is the difference between union and structure in c?

569


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2330


Explain union.

633


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

1724


How are pointers declared in c?

592


What is the explanation for the dangling pointer in c?

673


What is the symbol indicated the c-preprocessor?

693


What is the stack in c?

714