# number logic

## Consecutive Sum – ISC Practical 2006 Java Program

Question 1  A positive natural number, (for e.g. 27), can be represented as follows – 2+3+4+5+6+7 8+9+10 13+14 where every row represents a combination of consecutive natural numbers, which add up to 27. Write a program which inputs a positive natural number N and prints the possible consecutive number combinations, which when added give N. …

## Fascinating Number – Java Program

Write a Program in Java to input a number and check whether it is a Fascinating Number or not. Fascinating Numbers: Some numbers of 3 digits or more exhibit a very interesting property. The property is such that, when the number is multiplied by 2 and 3, and both these products are concatenated with the …

## Perfect Number Java Program (using Functions)

Write a program in java to accept a number and check the number is Perfect number or not using the following Functions. [Perfect: If the Sum of factors excluding the number itself is equal to the original number then it is termed as a Perfect number ] Example : 6, 28 etc. static void accept( …

## CORONA Number – Java Program

Write a program to accept a number and check whether it is a CORONA number or not. CORONA NUMBER: A number whose all digits are odd. Example: 3975 – all digits are odd

## Automorphic Number – Java Program

Write a program in Java to input a number and check whether it is Automorphic or not.An automorphic number is an integer whose square ends with the given integer, as(25)^2 = 625, and (76)^2 = 5776.

## Disarium Number using Recursion Java Program – ISC Computer Science

Question. A disarium number is a number in which the sum of the digits to the power of their respective position is equal to the number itself.Example: 135 = 11+ 32 + 53Hence, 135 is a disarium number. Design a class Disarium to check if a given number is a disarium number or not. Some …

## Prime Adam Integer – ISC 2020 Computer Practical Question 1

A Prime-Adam integer is a positive integer (without leading zeroes) which is a prime as well as an Adam number. Prime number: A number which has only two factors, i.e. 1 and the number itself. Example: 2, 3, 5, 7, etc. Adam number: The square of a number and the square of its reverse are reverse to …

## Circular Prime – ISC 2016 Computer Practical Paper

Question: A Circular Prime is a prime number that remains prime under cyclic shifts of its digits. When the leftmost digit is removed and replaced at the end of the remaining string of digits, the generated number is still prime. The process is repeated until the original number is reached again.A number is said to be prime …

## Special Two Digit Number in Java | ICSE Computer

A special two-digit number is such that when the sum of its digits is added to the product of its digits, the result is equal to the original two-digit number. Example: Consider the number 59. Sum of digits = 5 + 9 = 14 Product of its digits = 5 × 9 = 45 Sum …

## GCD or HCF of Two Numbers Java Program

The GCD (Greatest Common Divisor) of two numbers is the largest positive integer number that divides both the numbers without leaving any remainder. For example. GCD of 30 and 45 is 15. GCD also known as HCF (Highest Common Factor).