## Multiply the given number by 2 such that it is divisible by 10

Given a number, the only operation allowed is to multiply the number by 2. Calculate the minimum number of operations to make the number divisible… Read More »

Given a number, the only operation allowed is to multiply the number by 2. Calculate the minimum number of operations to make the number divisible… Read More »

Given three integers a, b and n, the task is to find out greater value between an and bn. Examples: Input: a = 3, b… Read More »

In Mathematics, the differential equation, is of particular importance. The solution of the equation is a function of the parameter . For integral and half-integral… Read More »

Given two integers say a and b. Find the quotient after dividing a by b without using multiplication, division and mod operator. Examples: Input: a… Read More »

Given a number n, the task is to print first n Fibonacci numbers. Prerequisite : Program to print first n Fibonacci Numbers | Set 1… Read More »

Finding LCM using GCD is explained here but here the task is to find LCM without first calculating GCD. Examples: Input: 7, 5 Output: 35… Read More »

Given two integers representing the Numerator and Denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the… Read More »

Given two positive and distinct numbers, the task is to find the greatest of two given numbers without using any conditional statements(if…) and operators(?: in… Read More »

Given a number n, find the nth Centered Dodecagonal Number. The Centered Dodecagonal Number represents a dot in the center and other dots surrounding it… Read More »

Given a number n, find the nth Centered Hexadecagonal Number. A Centered Hexadecagonal number represents a dot in the centre and other dots around it… Read More »

Vieta’s formula relates the coefficients of polynomial to the sum and product of their roots, as well as the products of the roots taken in… Read More »

Given a number N, find the number of distinct prime factors for all numbers in the range [1, N]. Examples : Input : N =… Read More »

The java.lang.Math.floorDiv() is a built-in math function in java which returns the largest (closest to positive infinity) int value that is less than or equal… Read More »

Given a number n, the task is to write a program to find Nth pentatope number. A pentatope number is class of figurative number and… Read More »

Given a number n, the task is to find Nth heptagonal number. A Heptagonal number represents heptagon and belongs to a figurative number. Heptagonal has… Read More »