# Category Archives: Mathematical

## Sum of all perfect square divisors of numbers from 1 to N

Given a number N, the task is to find the sum of all the perfect square divisors of numbers from 1 to N. Examples: Input:… Read More »

## Count of ways to split a given number into prime segments

Given a numeric string str, the task is to count the number of ways the given string can be split, such that each segment is… Read More »

## Split an array containing N elements into K sets of distinct elements

Given two integers N and K and an array arr[] consisting of duplicate elements, the task is to split N elements into K sets of… Read More »

## Check whether the binary equivalent of a number ends with “001” or not

Given a positive integer N, the task is to check whether the binary equivalent of that integer ends with “001” or not. Print “Yes” if… Read More »

## Panarithmic numbers within a given range

Given two positive numbers A and B.The task is to print all the Panarithmic Number between two numbers (inclusively). Panarithmic Numbers or Practical number is… Read More »

## Minimum insertions to make XOR of an Array equal to half of its sum

Given an array of positive integers, the task is to find the minimum number of insertions to be done in the array, to make the… Read More »

## Maximize the division result of Array using given operations

Given an array arr[] of N integers, the task is to find the maximum value possible remaining in the array by repeating the following two… Read More »

## Sum of the products of same placed digits of two numbers

Given two positive integers N1 and N2, the task is to find the sum of the products of same placed digits of the two numbers.… Read More »

## Print all distinct Coprime sets possible from 1 to N

Given an integer N, the task is to find all distinct co-prime sets up to the given integer N such that an element doesn’t appear… Read More »

## Find the sequence number of a triangular number

Given an integer N print the sequence number of the given Triangular Number. If the number is not a triangular number then print -1. A… Read More »

## Find the Nth Hogben Numbers

Given a number N, the task is to print the Nth Hogben number. Hogben Number: In a spiral arrangement of the integers, Hogben Numbers appear… Read More »

## Count of ordered triplets (R, G, B) in a given original string

Given a string S of size N, the task is to count all possible triplets in the given string which consists of only 3 colours… Read More »

## Find two numbers whose difference of fourth power is equal to N

Given an integer N, the task is to find two non-negative integers X and Y such that X4 – Y4 = N. If no such… Read More »

## Length of remaining two sides of a Triangle from a given side and its adjacent angles

Given the length of a side a of a triangle and its adjacent angles B and C, the task is to find the remaininig two… Read More »

## Product of all the pairs from the given array

Given an array arr[] of N integers, the task is to find the product of all the pairs possible from the given array such as:… Read More »