# Category Archives: Mathematical

## Represent a number as sum of minimum possible psuedobinary numbersSeptember 23, 2017

Given a number, you have to represent this number as sum of minimum number of possible psuedobinary numbers. A number is said to be psuedobinary… Read More »

## Smallest number divisible by n and has at-least k trailing zerosSeptember 21, 2017

Two integers n and k are given. Our task is to print K-rounding of n. K-rounding is the minimum positive integer X, such that x… Read More »

## Taxicab Numbers

The nth Taxicab number Taxicab(n), also called the n-th Hardy-Ramanujan number, is defined as the smallest number that can be expressed as a sum of… Read More »

## Program for sum of geometric seriesSeptember 19, 2017

A Geometric series is a series with a constant ratio between successive terms. The first term of the series is denoted by a and common… Read More »

## Check whether a number is circular prime or not.September 18, 2017

We are given a number n. Our task is to check whether the number is circular prime or not. Circular Prime : A prime number… Read More »

## Rearrangement of a number which is also divisible by it

Given a number n, we need to rearrange all its digits such that the new arrangement is divisible by n. Also, the new number should… Read More »

## Check whether a number can be expressed as a product of single digit numbersSeptember 17, 2017

Given a non-negative number n. The problem is to check whether the given number n can be expressed as a product of single digit numbers… Read More »

## Sylvester’s sequence

In number system, Sylvester’s sequence is an integer sequence in which each member of the sequence is the product of the previous members, plus one.… Read More »

## Betrothed numbers

Betrothed numbers are two positive numbers such that the sum of the proper divisors of either number is one more than (or one plus) the… Read More »

## Composite Number

A composite number is a positive integer that is not prime. In other words, it has a positive divisor other than one or itself. First… Read More »

## Program to find sum of first n natural numbers

Given a number n, find sum of first natural numbers. Examples: Input : n = 3 Output : 6 Explanation : Note that 1 +… Read More »

## Find if two people ever meet after same number of jumpsSeptember 16, 2017

Two people start races from two different points p1 and p2. They cover s1 ans s2 meters in a jump. Find if they will ever… Read More »

## Hailstone Numbers

We are provided with a number N. Our task is to generate all the Hailstone Numbers from N and find the number of steps taken… Read More »

## Find m-th summation of first n natural numbers.

m-th summation of first n natural numbers is defined as following. If m > 1 SUM(n, m) = SUM(SUM(n, m – 1), 1) Else SUM(n,… Read More »

## Count number of digits after decimal on dividing a numberSeptember 14, 2017

We are given two numbers A and B. We need to calculate the number of digits after decimal. If in case the numbers are irrational… Read More »