Q.1. print the series: 1, 12, 123, 1234,...
Q. 2. S = 1 + (1+2) + (1+2+3) + ....... + (1+2+3+ ....... + n)
Q. 3. S = x/2 + x/5 + x/8 + x/11 + ...... + x/20
Q. 4. S = 1/a + 1/a2 + 1/a3 + ...... + 1/an
Q. 5. S = 1^2/a + 3^2 / a^2 / a^3 + ...... to n terms
1. A number that equals the sum of its own digits, each raised to the power of the total number of
digits in that number, is known as an Armstrong number. Examples of such numbers are 153
(1³ + 5³ + 3³ = 153) and 1634 (1⁴ + 6⁴ + 3⁴ + 4⁴ = 1634). In this example dc is used to count the
number of digit
2. An Automorphic number is a number whose square “ends” in the same digits as the number itself.
Examples: 5*5 = 25, 6*6 = 36, 25*25 = 625
3. A number is said to be Buzz Number if it ends with 7 or is divisible by 7. Example: 1007 is a Buzz
Number
4. A circular prime is a prime number with the property that the number generated at each intermediate
step when cyclically permuting its digits will be prime. For example, 1193 is a circular prime, since 1931,
9311 and 3119 all are also prime.
5. A Duck number is a number which has zeroes present in it, but there should be no zero present in the
beginning of the number. For example 3210
6. A happy number is a natural number in a given number base that eventually reaches 1 when iterated
over the perfect digital invariant function for. Those numbers that do not end in 1 are -unhappy
numbers.
7. In mathematics, a harshad number (or Niven number) in a given number base is an integer that is
divisible by the sum of its digits when written in that base.
8. A neon number is a number where the sum of digits of square of the number is equal to the number.
For example if the input number is 9, its square is 9*9 = 81 and sum of the digits is 9. i.e. 9 is a neon
number.
9. In mathematics, a Niven number (or harshad number) in a given number base is an integer that is
divisible by the sum of its digits when written in that base.
10. A spy number is a number where the sum of its digits equals the product of its digits. For example,
1124 is a spy number, the sum of its digits is 1+1+2+4=8 and the product of its digits is 1*1*2*4=8.
11. A twin prime is a prime number that is either 2 less or 2 more than another prime number—for
example, either member of the twin prime pair (41, 43). In other words, a twin prime is a prime that
has a prime gap of two.
12. A number is said to be unique , if the digits in it are not repeated. for example, 12345 is a unique
number. 123445 is not a unique number.
13. A number is called Disarium number if the sum of its power of the positions from left to right is equal
to the number. Example: 1 + 3*3 + 5*5*5 = 1 + 9 + 125 = 135
14. A number is said to be a pronic number if product of two consecutive integers is equal to the number, is
called a pronic number. Example- 42 is said to be a pronic number, 42=6×7, here 6 and 7 are
consecutive integers
15. A number is said to be an Ugly number if positive numbers whose prime factors only include 2, 3, 5. For
example, 6(2×3), 8(2x2x2), 15(3×5) are ugly numbers while 14(2×7) is not ugly since it includes another
prime factor 7. Note that 1 is typically treated as an ugly number.