## Number of digits in the nth number made of given four digits

Find the number of digits in the nth number constructed by using 6, 1, 4 and 9 as the only digits in the ascending order.… Read More »

## Divisibility by 3 where each digit is the sum of all prefix digits modulo 10

Given K, number of digits, and d0 and d1 as the two digits to form the k-sized integer. Task is to check whether the k-sized… Read More »

## Position of n among the numbers made of 2, 3, 5 & 7

Consider a series of numbers composed of only digits 2, 3, 5, 7 (primes). First few numbers in the series are 2, 3, 5, 7,… Read More »

## Count numbers formed by given two digit with sum having given digits

Given a, b and N(1 to 106). Task is to count the numbers formed by digits a and b exactly of a length N such… Read More »

## Sum of digits written in different bases from 2 to n-1

Given a number n, find the sum of digits of n when represented in different bases from 2 to n-1. Examples: Input : 5 Output… Read More »

## Minimum digits to remove to make a number Perfect Square

Given a integer n, we need to find how many digits remove from the number to make it a perfect square. Examples : Input :… Read More »

## Number of Digits in a^b

Given two positive integers a and b, task is to find the number of digits in a^b (a raised to the power b). Example: Input:… Read More »

## Find the Number which contain the digit d

Given two integer number n and d. The task is to find the number between 0 to n which contain the specific digit d. Examples:… Read More »

## Number with even sum of digits

A positive integer is considered a good number if sum of its digits is even. Find n-th smallest good number. Examples : Input : n… Read More »

## Largest even digit number not greater than N

Given a number N, we need to write a program to find the largest number not greater than N which has all digits even. Examples:… Read More »

## Smallest multiple of a given number made of digits 0 and 9 only

We are given an integer N. We need to write a program to find the least positive integer X made up of only digits 9’s… Read More »

## Number of digits in 2 raised to power n

Let n be any power raised to base 2 i.e 2n. We are given the number n and our task is to find out the… Read More »

## Smallest even digits number not less than N

Given a number N, we need to write a program to find the smallest number not less than N, which has all digits even. Examples:… Read More »

## Pandigital Product

A Pandigital Number is number which makes the use of all digits 1 to 9 exactly once. We are given a number, we need to… Read More »

## Undulating numbers

An undulating number is a number that has only two types of digits and alternate digits are same, i.e., it is of the form “ababab….”.… Read More »