
For example 47 is not a Lychrel Number as 47 + 74 = 121
Lychrel numbers: Are those numbers that cannot form a palindrome when repeatedly reversed and added to itself. Perfect numbers or Amicable numbers: Perfect numbers are those numbers which are equal to the sum of their proper divisors. Goldbech`s conjecture: Every even integer greater than 2 can be expressed as the sum of 2 primes. If we have to subtract a constant K such that the product gets its minimum value, then subtract it from the smallest value where smallest value-k should be greater than 0 For a product of N numbers, if we have to subtract a constant K such that the product gets its maximum value, then subtract it from a largest value such that largest value-k is greater than 0. We can notice that individual terms of aboveįormula are Geometric Progressions (GP). p k respectively that divide n, i.e., we can write n as n = (p 1 a 1)*(p 2 a 2)* … (p k a k). Let p 1, p 2, … p k be prime factors of n. To calculate sum of factors of a number, we can find the number of prime factors and their exponents. For example 4 has 3 divisors, 1, 2 and 4. A number of form 2 N has exactly N+1 divisors. The result will will be divisible by 7, 11 and 13, and dividing by all three will give your original three-digit number. If we repeat a three-digit number twice, to form a six-digit number. All 4 digit palindromic numbers are divisible by 11. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. Get hold of all the important mathematical concepts for competitive programming with the Essential Maths for CP Course at a student-friendly price. Program for Binary To Decimal ConversionĪttention reader! Don’t stop learning now. Program to count digits in an integer (4 Different Methods). Print all possible combinations of r elements in a given array of size n. Program to find sum of elements in a given array. The Knight's tour problem | Backtracking-1. How to swap two numbers without using a temporary variable?. Euclidean algorithms (Basic and Extended). Write a program to reverse digits of a number.
Find minimum number of coins that make a given value.Modulo Operator (%) in C/C++ with Examples.Efficient program to print all prime factors of a given number.Program for Decimal to Binary Conversion.Program to find GCD or HCF of two numbers.Set in C++ Standard Template Library (STL).Write a program to print all permutations of a given string.ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.
GATE CS Original Papers and Official Keys.