Computer Science, asked by arhamj504, 4 months ago

Write a program to display the following series of numbers. (IN Qbasic) 12, 24, 36......120

Answers

Answered by karnamvishnu5
1

Answer:

Number series are fascinating. They take a simple concept and from that a whole series of numbers can be generated. Take Prime Numbers, the series starts off with the fact that some numbers are only divisible by themselves and 1. I've no idea what the largest prime number that has been so far calculated is, but, there is a class of prime numbers known as the Mersenne Primes. These take the form 2p - 1. In plain English, they are 2 to the power of a prime number - 1. As the Prime Number series runs 2, 3, 5, 7 ... the Mersenne Prime Number series runs 3, 7, 31, 127 ... The first in the series is 3 = 22 - 1, followed by 7 = (23) - 1 = (2 * 2* 2) - 1, then 31 = 25 - 1 = (2 * 2 * 2 * 2 * 2) - 1, followed by 127 = 27 - 1 = (2 * 2 * 2 * 2 * 2 * 2 * 2) - 1. The largest Mersenne Prime calculated so far is the 39th in the series and is 213,466,917-1 which I'm not going to put here as it's got over 4 MILLION digits. Want to earn yourself $100,000? Then calculate and prove a 10 MILLION digit prime number. The information on Mercenne Primes was taken from Mersenne Prime Search.

The number series I've included in the program, numser.bas, are Catalan, Factional, Fibonacci, Harmonic, Mersenne Prime, Pascal, Prime, Square, Triangular and Vampire.

Similar questions