# Category Archives: Mathematical

## Count of distinct pair sum between two 1 to N value Arrays

Given a positive integer N such that there exists two arrays a[] and b[] each containing values {1, 2, 3, .., N}, the task is… Read More »

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

Given an integer N, check whether the given number is a Moran Number or not. Moran numbers are a subset of Harshad numbers. A number… Read More »

## Program to check if N is a Hendecagonal Number

Given an integer N, the task is to check if N is a Hendecagonal Number or not. If the number N is an Hendecagonal Number… Read More »

## Program to check if N is a Tetradecagonal Number

Given an integer N, the task is to check if N is a Tetradecagonal Number or not. If the number N is an Tetradecagonal Number… Read More »

## Program to check if N is a Hexadecagonal Number

Given an integer N, the task is to check if N is a Hexadecagonal Number or not. If the number N is an Hexadecagonal Number… Read More »

## Program to check if N is a Nonagonal Number

Given a number N, the task is to check if N is a Nonagonal Number or not. If the number N is an Nonagonal Number… Read More »

## Program to check if N is a Enneadecagonal Number

Given a number N, the task is to check if N is a Enneadecagonal Number or not. If the number N is an Enneadecagonal Number… Read More »

## Count of K length subsequence whose product is even

Given an array arr[] and an integer K, the task is to find number of non empty subsequence of length K from the given array… Read More »

## Count of decreasing pairs formed from numbers 1 to N

Given an integer N, the task is to count of decreasing pairs from numbers 1 to N. A pair (x, y) is said to be… Read More »

## Count of pairs (i, j) in the array such that arr[i] is a factor of arr[j]

Given an array of integers arr, the task is to calculate the number of pairs (i, j) where i < j such that arr[j] %… Read More »

## Icositrigonal Number

Given a number N, the task is to find Nth Icositrigonal number or not. An Icositrigonal number is class of figurate number. It has 23… Read More »

## Find the sum of the first Nth Icosagonal Numbers

Given a number N, the task is to find the sum of first N Icosagonal Numbers. The first few Icosagonal numbers are 1, 20, 57,… Read More »

## Icositetragonal Number

Given a number N, the task is to find the Nth Icositetragonal number. An Icositetragonal number is a class of figurate number. It has a… Read More »

## Find the sum of the first N Centered Pentagonal Number

Given a number N, the task is to find the sum of first N Centered Pentagonal Numbers. The first few Centered Pentagonal Number are 1,… Read More »

## Find the sum of the first Nth Centered Tridecagonal Numbers

Given a number N, the task is to find the sum of first N Centered tridecagonal number. A Centered tridecagonal number represents a dot at… Read More »