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 »

## Smallest number with given sum of digits and sum of square of digits

Given sum of digits and sum of square of digits . Find the smallest number with given sum of digits and sum of the square… Read More »

## Longest subarray such that adjacent elements have at least one common digit

Given an array of N integers, write a program that prints the length of the longest subarray such that adjacent elements of the subarray have… Read More »

## Check if mirror image of a number is same if displayed in seven segment display

Given a positive number n. The task is to check if the mirror image of the number is equal to given number or not if… Read More »

## Check whether a given number is Polydivisible or Not

Given an integer n, find whether n is a Polydivisible or not. In mathematics, a number is called Polydivisible if it follows some unique properties.… Read More »

## Pairs whose concatenation contain all digits

Given an array of n numbers. The task is to find the number of pairs that can be taken from the given which on concatenation… Read More »

## Strobogrammatic number

For the given length n, find all n-length Strobogrammatic numbers. Strobogrammatic Number is a number whose numeral is rotationally symmetric so that it appears the… Read More »

## Squares of numbers with repeated single digits | Set 1 (3, 6 and 9)

Given a number made of single digits, find its square. It may be assumed that the single digits are 3, 6 and 9. Numbers can… Read More »

## 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 »