## Count non-adjacent subsets from numbers arranged in Circular fashion

Given that N people are sitting in a circular queue numbered from 1 to N, the task is to count the number of ways to… Read More »

## Find the previous fibonacci number

Given a Fibonacci number N, the task is to find the previous Fibonacci number. Examples: Input: N = 8 Output: 5 5 is the previous… Read More »

## Find the next fibonacci number

Given a fibonacci number N, the task is to find the next fibonacci number. Examples: Input: N = 5 Output: 8 8 is the next… Read More »

## Program to find Nth odd Fibonacci Number

Given an integer N. The task is to find the Nth odd Fibonacci number. The odd number fibonacci series is as: 1, 1, 3, 5,… Read More »

## C++ Program to print Fibonacci Series using Class template

Given a number n, the task is to write a program in C++ to print the n-terms of Fibonacci Series using a Class template The… Read More »

## Find the Nth element of the modified Fibonacci series

Given two integers A and B which are the first two terms of the series and another integer N. The task is to find the… Read More »

## Find F(n) when F(i) and F(j) of a sequence are given

Given five integers i, Fi, j, Fj and N. Where Fi and Fj are the ith and jth term of a sequence which follows the… Read More »

## Fibonacci Number modulo M and Pisano Period

Given two number N and M. The task is to find the N-th fibonacci number mod M. In general let FN be the N-th fibonacci… Read More »

## Nth Fibonacci number using Pell’s equation

Given an integer N, the task is to find the Nth Fibonacci number. Input: N = 13 Output: 144 Input: N = 19 Output: 2584… Read More »

## Nth XOR Fibonacci number

Given three integers a, b and N where a and b are the first two terms of the XOR Fibonacci series and the task is… Read More »

## Minimum number of Fibonacci jumps to reach end

Given an array of 0s and 1s, If any particular index i has value 1 then it is a safe index and if the value… Read More »

## Fibonacci Power

Given a number n. You are required to find ( Fib(n) ^ Fib(n) ) % 10^9 + 7, where Fib(n) is the nth fibonacci number.… Read More »

## Count of cells in a matrix which give a Fibonacci number when the count of adjacent cells is added

Given an M x N matrix mat[][]. The task is to count the number of good cells in the matrix. A cell will be good… Read More »

## Count the nodes whose sum with X is a Fibonacci number

Given a tree, and the weights of all the nodes and an integer X, the task is to count all the nodes i such that… Read More »

## Distinct pairs from given arrays (a[i], b[j]) such that (a[i] + b[j]) is a Fibonacci number

Given two arrays a[] and b[], the task is to count the pairs (a[i], b[j]) such that (a[i] + b[j]) is a Fibonacci number.Note that… Read More »