# Tag Archives: large-numbers

## Breaking a number such that first part is integral division of second by a power of 10

Given a very large number N, we need to count the total ways such that if we divide the number into two parts a and… Read More »

## Calculate n + nn + nnn + … + n(m times) in Python

The program is to find a mathematical series, where we need to accept the value of n and m. n is the base number and… Read More »

## Check if a large number is divisible by 13 or not

Given a large number, the task is to check if number is divisible by 13 or not. Examples: Input : 637 Output : 637 is… Read More »

## Largest number with one swap allowed

Given a positive integer, find the largest number that could be generated by swapping only two digits at most once. Examples: Input: 2736 Output :… Read More »

## Given a large number, check if a subsequence of digits is divisible by 8

Given a number of at most 100 digits. We have to check if it is possible, after removing certain digits, to obtain a number of… Read More »

## Largest smaller number possible using only one swap operation

Given a non-negative number N in the form of string. The task is to apply at most one swap operation on the number N so… Read More »

## Program to find remainder when large number is divided by 11

Given a number n, the task is to find the remainder when n is divided by 11. The input of number may be very large.… Read More »

## Number of digits to be removed to make a number divisible by 3

Given a very large number num (1 <= num <= 10^1000), print the number of digits that needs to be removed to make the number… Read More »

## Check if a large number is divisibility by 15

Given a very large number. Check its divisibility by 15. Examples: Input: 31 Output: No Input : num = “156457463274623847239840239 402394085458848462385346236 482374823647643742374523747 264723762374620” Output: Yes… Read More »

## Program for quotient and remainder of big number

Given a string of numbers and given another number (say m) [0

## Divisible by 37 for large numbers

Given a large number n, we need to check whether it is divisible by 37. Print true if it is divisible by 37 otherwise False.… Read More »

## Given a HUGE number check if it’s a power of two.

Find if a given number, num is power of 2 or not. More specifically, find if given number can be expressed as 2^k where k… Read More »

## 9’s complement of a decimal number

9’s complement of a decimal number is the subtraction of it’s each digits from 9. Like 1’s complement, 9’s complement is used to subtract a… Read More »

## Divide number into two parts divisible by given numbers

Given a large number in string format and we are also given two numbers f and s. We need to divide the large number into… Read More »

## Decimal representation of given binary string is divisible by 10 or not

The problem is to check whether the decimal representation of the given binary number is divisible by 10 or not. Take care, the number could… Read More »