# Tag Archives: number-digits

## Self Numbers

A Number N is said to be Self Number if it can not be written as M + sum of digits of M for any… Read More »

## James Joyce’s “Ulysses” sequence

James Joyce’s “Ulysses” sequence represents the number of digits in NNN. First few terms in James Joyce’s “Ulysses” sequence are 1, 2, 13, 155, 2185,… Read More »

## Digitally balanced numbers

Given two integers N and B, the task is to check N is a Digitally balanced number in base B. Digitally balanced numbers in the… Read More »

## Smallest number greater than or equal to N using only digits 1 to K

Given a number N and an integer K, the task is to find the smallest number greater than or equal to N, formed using only… Read More »

## Smallest number containing all possible N length permutations using digits 0 to D

Given two integer N and K, the task is to find the size of the smallest string that contains all permutations of length N that can… Read More »

## Count of subsequences of length 4 in form (x, x, x+1, x+1) | Set 2

Given a large number in form of string str of size N, the task is to count the subsequence of length 4 whose digit are… Read More »

## Print all K digit repeating numbers in a very large number

Given a very large number N in form of string and a number K, the task is to print all the K-digit repeating numbers whose… Read More »

## Smallest N digit number divisible by N

Given a positive integers N, the task is to find the smallest N digit number divisible by N. Examples: Input: N = 2 Output: 10… Read More »

## Last two digits of powers of 7

Given a positive N, the task is to find the last two digits of 7N. Examples: Input: N = 5 Output: 07 Explanation: The value… Read More »

## Smallest number whose sum of digits is square of N

Given an integer N, the task is to find the smallest number whose sum of digits is N2.Examples:   Input: N = 4 Output: 79 24 = 16 sum… Read More »

## Find the smallest number whose sum of digits is N

Given a positive integers N, the task is to find the smallest number whose sum of digits is N.Example:   Input: N = 10 Output: 19… Read More »

## Zuckerman Numbers

Given an integer N, the task is to check if N is a Zuckerman Number.  Zuckerman Number is a number which is divisible by the… Read More »

## Check if the number is balanced

Given a number N in the form of a string, the task is to check whether the given number is balanced or not. Balanced Number:… Read More »

## Check if given number contains a digit which is the average of all other digits

Given an integer N, the task is to check whether N contains a digit D such that it is the average of all other digits… Read More »

## Find position of given term in a series formed with only digits 4 and 7 allowed

There is a series of numbers that have only digits, 4 and 7, and numbers are arranged in increasing order. The first few numbers of… Read More »