The Hidden Algorithm in Credit Card Numbers: Try it!

Today, credit card numbers, passport numbers, identification numbers of various countries and survey codes are created with the Luhn algorithm. Thanks to this algorithm created by an IBM scientist, all credit card numbers are created in a certain system and order.

Hans Peter Luhn Creator of the Luhn algorithm and the scientist who created all the credit card numbers we use today. Although this algorithm does not require very advanced mathematics, it is quite useful and organized.

The Luhn algorithm has been used since the 1950s. So what exactly is the working logic? Can credit card numbers be easily found with the Luhn algorithm? In this article, we will focus on these two questions.

The magic is in math. The mystery of the mathematics underlying the Luhn algorithm:

Of course, we did not make calculations over 16-digit credit card numbers here. Let’s imagine 12345 We have the number. We multiply the numbers that we skipped by two, including the initial value, by 2 and add them after the multiplication. The action taken 1*2+3*2+5*2is .

In case of multiplication by two, if the product value 10 and if greater than 10 We add the digits in the digits. When we focus on our example, there are 5*2. Since the product result is 10, 1+0 operation is performed and 1 is obtained.

As a result of transactions 2+6+1=9 We have reached the conclusion. Of course, we need to do two more operations. We have empty numbers left. Now let’s take the free numbers (2 and 4) and add them by 9. We have reached the result 9+2+4=15. Finally, we divide the obtained value by 10. If we get the remainder 0, is a real credit card understandable. If the remainder is a value other than 0, it is not a real credit card number.

Credit card numbers are easy to find.

When we look at the working logic of the Luhn algorithm, it has a very simple logic. Moreover, by making use of software languages, without manual calculation. we can find the card numbers automatically.

to this situation don’t get worried. Easy to find credit card number does not mean that other information can be found easily. In other words, your credit cards are created in a very secure way than you think.

This algorithm works on identity cards, passport numbers and IMEI numbers of some countries.

Let’s go a little far, to the African side. South Africa uses the Luhn algorithm when generating their identity cards. Let’s not go far this time, take your phone and Search for *#06# on your phone.

The numbers you will view It is the IMEI number. IMEI numbers are also generated according to the Luhn algorithm. Isn’t it very impressive?

Love math because it works for us in every aspect of our lives.

As you know, today, mathematics is taught by heart in schools and various educational institutions. We’ve all been in math class at least once. “I’ve learned that, now what good will it do me?” We asked a question.

As a software trainer, I can say that in everything in daily life there is a trace of mathematics. Luhn’s algorithm just one of them.

RELATED NEWS

Let Matchmaking Apps Collect Unmatched: How to Reset the Algorithm?

RELATED NEWS

The “Two Bucket Problem” That Only Those With Algorithmic Intelligence Can Solve


source site-34