Rinish Patidar has Published 56 Articles

Sum of product of Consecutive Binomial Coefficients

Rinish Patidar

Rinish Patidar

Updated on 28-Aug-2023 17:54:20

110 Views

The problem statement includes printing the sum of product of consecutive binomial coefficients for any positive number, N which will be the user input. The positive coefficients in the binomial expansion of any term are called binomial coefficients. These binomial coefficients can be found out using Pascal's triangle or a ... Read More

Sum of digits written in different bases from 2 to n-1

Rinish Patidar

Rinish Patidar

Updated on 28-Aug-2023 17:50:33

48 Views

The problem statement includes printing the sum of digits of N, which will be the user input, when written in different bases from 2 to N−1. In this problem, we will be provided any positive integer N and we need to represent that number in a different base numeral system ... Read More

Sum of bitwise OR of all possible subsets of given set

Rinish Patidar

Rinish Patidar

Updated on 28-Aug-2023 17:46:06

109 Views

The problem statement includes printing the sum of bitwise OR of all possible subsets of a given set. A set is a collection of data of similar type. A subset of any set is a set containing few elements of the set or all the elements of the given set. ... Read More

Program to print the sum of the given nth term

Rinish Patidar

Rinish Patidar

Updated on 28-Aug-2023 17:34:54

132 Views

The problem statement includes printing the sum of the series whose Nth term is given. The value of N will be given in the input. We need to find the sum of the sequence up to N where the Nth term of the sequence is given by: $$\mathrm{N^{2}−(N−1)^{2}}$$ Let’s understand ... Read More

Numbers within a range that can be expressed as power of two numbers

Rinish Patidar

Rinish Patidar

Updated on 28-Aug-2023 15:39:32

110 Views

The problem statement includes printing the count of numbers within a range given that can be expressed as power of two numbers i.e. numbers which are perfect powers. The numbers which are known as perfect powers is the number which can be expressed as $\mathrm{x^{y}}$, where x>0 and y>1 for ... Read More

Minimum digits to remove to make a number Perfect Square

Rinish Patidar

Rinish Patidar

Updated on 28-Aug-2023 15:36:03

416 Views

The problem statement includes finding the minimum number of digits to remove from a number to make a number perfect square. A perfect square denoted as $\mathrm{x^{2}}$ is a positive integer which is a product of an integer with itself. We will be given a positive number N and we ... Read More

Making zero array by decrementing pairs of adjacent

Rinish Patidar

Rinish Patidar

Updated on 28-Aug-2023 15:34:10

43 Views

The problem statement includes making an array zero array by decrementing pairs of adjacent. The array will be given in the input and we can perform the operation on the array i.e. subtract 1 from ith and (i+1)th index where 0

Java Math subtractExact(long x, long y) method

Rinish Patidar

Rinish Patidar

Updated on 28-Aug-2023 15:31:08

102 Views

We will discuss the Java Math subtractExact(long x, long y) method in Java language and understand its functionalities and working. The subtractExact()is an inbuilt function in the Java Math library. The function returns the difference between the two parameters passed as arguments in the function. The function returns an exception ... Read More

Hoax Number

Rinish Patidar

Rinish Patidar

Updated on 28-Aug-2023 15:28:20

135 Views

The problem statement includes checking if the given number N, which will be the user input, is a hoax number or not. A Hoax number is a composite number whose sum of digits of its distinct prime factors is equal to the sum of the digits of the composite number ... Read More

Hardy-Ramanujan Theorem

Rinish Patidar

Rinish Patidar

Updated on 28-Aug-2023 15:27:05

106 Views

The Hardy−Ramanujan Theorem states that the number of distinct prime factors of any natural number N will be approximately equal to the value of $\mathrm{\log(\log N)}$ for most of the cases. For example, let’s consider N to be 1000. The number of distinct prime factors of 15 are 2 ... Read More

Advertisements