# Tag Archives: Numbers

## C/C++ program for Armstrong Numbers

Given a number N, the task is to check whether the given number is Armstrong number or not. If the given number is Armstrong Number… Read More »

## Find largest factor of N such that N/F is less than K

Given two numbers N and K, the task is to find the minimum value X such that N < X*K. Examples: Input: N = 8,… Read More »

## Find all numbers up to N which are both Pentagonal and Hexagonal

Given an integer N, the task is to find all numbers up to N, which are both Pentagonal as well as Hexagonal. Example: Input: N… Read More »

## Product of Complex Numbers using three Multiplication Operation

Given four integers a, b, c, and d which represents two complex numbers of the form (a + bi) and (c + di), the task… Read More »

## BCD or Binary Coded Decimal

Binary Coded Decimal, or BCD, is another process for converting decimal numbers into their binary equivalents. It is a form of binary encoding where each… Read More »

## Pentanacci Numbers

The Pentanacci series is a generalization of the Fibonacci sequence where each term is the sum of the five preceding terms. The first few Pentanacci… Read More »

## Form smallest number using indices of numbers chosen from Array with sum less than S

Given an array arr[] and an integer S, the task is to choose maximum count of numbers from the array such that sum of numbers… Read More »

## Compositorial of a number

Given a natural number N, the task is to find the Nth compositorial number. Compositorial of a number refers to the product of all the… Read More »

## Minimize steps to reach K from 0 by adding 1 or doubling at each step

Given a positive integer K, the task is to find the minimum number of operations of the following two types, required to change 0 to… Read More »

## Represent N as sum of K even or K odd numbers with repetitions allowed

Given two integer N and K, the task is to find an array of size K containing only even or odd elements where the sum… Read More »

## Check whether a given number N is a Nude Number or not

Given an integer N, the task is to check whether N is a Nude number or not. A Nude number is a number that is… Read More »

## Count of possible permutations of a number represented as a sum of 2’s, 4’s and 6’s only

Given an integer N, the task is to find out the number of permutations in which N can be represented as a sum of 2s,… Read More »

## Count of numbers in Array ending with digits of number N

Given a number N and an array arr[] consisting of K numbers, the task is to find the count of numbers in the array which… Read More »

## Check if a number ends with another number or not

Given two numbers A and B where (A > B), the task is to check if B is a suffix of A or not. Print… Read More »

## Find N distinct integers with sum N

Given an integer N, the task is to find N distinct integers whose sum is N. If there is more than one combination of the… Read More »