- Related Questions & Answers
- Add minimum number to an array so that the sum becomes even in C programming
- C Program for Tower of Hanoi
- C++ Program for Dijkstra’s shortest path algorithm?
- C/C++ Program for nth Catalan Number?
- C Program to Multiply two Floating Point Numbers?
- C program to find the length of a string?
- C Program to Check if all digits of a number divide it
- C Program to Check if a Given String is a Palindrome?
- Concatenate a string given number of times in C++ programming
- Write a program to Delete a Tree in C programming
- Write a C program to print “ Tutorials Point ” without using a semicolon
- Superperfect Number in C programming
- C Programming for sum of the series 0.6, 0.06, 0.006, 0.0006, …to n terms
- Sum of the nodes of a Singly Linked List in C Program
- Sum of the first N terms of the series 5,12, 23, 38…. in C Programming

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

In this article, we will learn about the solution to the problem statement given below.

**Problem statement**− We are given a number, we need to find the nth multiple of a number k in Fibonacci number.

The solution to the problem is discussed below−

# find function def find(k, n): f1 = 0 f2 = 1 i =2; #fibonacci recursion while i!=0: f3 = f1 + f2; f1 = f2; f2 = f3; if f2%k == 0: return n*i i+=1 return # multiple of which number n = 5; # number k = 4; print("Position of n\'th multiple of k in""Fibonacci Series is: ", find(k,n));

Position of n'th multiple of k inFibonacci Series is: 30

All the variables and functions are declared in the global scope as shown in the figure above.

In this article, we have learned how we can find nth multiple of a number k in the Fibonacci series.

Advertisements