##
Smith Number
November 18, 2016

Given a number n, the task is to find out whether this number is smith or not. A Smith Number is a composite number whose… Read More »

November 18, 2016

Given a number n, the task is to find out whether this number is smith or not. A Smith Number is a composite number whose… Read More »

A Kaprekar number is a number whose square when divided into two parts and such that sum of parts is equal to the original number… Read More »

November 17, 2016

A n digit number x is called Keith number if it appears in a special sequence (defined below) generated using its digits. The special sequence… Read More »

Lucas numbers are similar to Fibonacci numbers. Lucas numbers are also defined as the sum of its two immediate previous terms. But here the first… Read More »

November 16, 2016

Find the Smallest number (Not leading Zeros) which can be obtained by rearranging the digits of given number. Examples: Input: n = 846903 Output: 304689… Read More »

Given an integer n, find the nth Pentagonal number. First three pentagonal numbers are 1, 5 and 12 (Please see below diagram). The n’th pentagonal… Read More »

Given two integers n and k. Find position the n’th multiple of K in the Fibonacci series. Examples: Input : k = 2, n =… Read More »

November 15, 2016

Given a Number n such that 1 <= N <= 10^6, the Task is to Find the LCM of First n Natural Numbers. Examples: Input… Read More »

November 12, 2016

Given an array arr[] such that 1 <= arr[i] <= 10^12, the task is to find prime factors of LCM of array elements. Examples: Input… Read More »

Given a large number as string, find remainder of number when divided by 7. Examples: Input : num = 1234 Output : 2 Input :… Read More »

Given three integers x, y, z, the task is to compute the value of GCD(LCM(x,y), LCM(x,z)). Where, GCD = Greatest Common Divisor, LCM = Least… Read More »

November 9, 2016

Given a number “n”, find if it is Disarium or not. A number is called Disarium if sum of its digits powered with their respective… Read More »

Given a number n, the task is to check whether it can be expressed as a sum of two or more consecutive numbers or not.… Read More »

November 7, 2016

Given a sequence with some of its term, we need to calculate next K term of this sequence. It is given that sequence is generated… Read More »

November 6, 2016

You are given a number n ( 3 <= n < 10^6 ) and you have to find nearest prime less than n? Examples: Input… Read More »