Question

In: Computer Science

Given the number: 7992739874 What would the check-digit be after applying luhns algorithm and how would...

Given the number: 7992739874

What would the check-digit be after applying luhns algorithm and how would we find it?

Solutions

Expert Solution

--> Given number is 7992739874

--> Now take every second digit of the number and replace it with 2 times original number:

      ex: Take second digit 9

            2*9 = 18

            Since It have 2 digits add them up to get a single digit 1+8 = 9

--> So, the number becomes

      7    9    9    2    7    3 9    8    7    4

           18          4          6           16         8

            9         4          6            7          8

    7   9     9    4     7    6 9     7    7    8

--> Now take the sum of those digits

    7 + 9 + 9 + 4 + 7 + 6 + 9 + 7 + 7 + 8 = 73

--> So, the check-sum is 73, mod 10 will give 3

--> Since it is not 0, the number is not valid.


Related Solutions

Suppose that a check digit is assigned to a four-digit number by appending the remainder after...
Suppose that a check digit is assigned to a four-digit number by appending the remainder after division by 7. If the number 36806 has a single-digit error in the first position, determine the possibilities for the correct number.
Credit Card Number Check. The last digit of a credit card number is the check digit,...
Credit Card Number Check. The last digit of a credit card number is the check digit, which protects against transcription errors such as error in a single digit or switching two digits. The following method is used to verify actual credit card number but, for simplicity, we will describe it for numbers with 8 digits instead of 16: Starting from the rightmost digit, form the sum of every other digit. For example, if the credit card number is 43589795, then...
Credit Card Number Check. The last digit of a credit card number is the check digit,...
Credit Card Number Check. The last digit of a credit card number is the check digit, which protects against transcription errors such as an error in a single digit or switching two digits. The following method is used to verify actual credit card numbers but, for simplicity, we will describe it for numbers with 8 digits instead of 16: • Starting from the rightmost digit, form the sum of every other digit. For example, if the credit card number is...
Credit Card Number Check. The last digit of a credit card number is the check digit,...
Credit Card Number Check. The last digit of a credit card number is the check digit, which protects against transcription errors such as an error in a single digit or switching two digits. The following method is used to verify actual credit card numbers but, for simplicity, we will describe it for numbers with 8 digits instead of 16: • Starting from the rightmost digit, form the sum of every other digit. For example, if the credit card number is...
Is 100202345X a valid ISBN number? If not, what would the correct check digit have to...
Is 100202345X a valid ISBN number? If not, what would the correct check digit have to be ? Solve the congruence 121x ≡ 5 mod 350.
The last digit of a credit card number is the check digit, which protects against transcription...
The last digit of a credit card number is the check digit, which protects against transcription errors such as an error in a single digit or switching two digits. The following method is used to verify actual credit card numbers but, for simplicity, we will describe it for numbers with 8 digits instead of 16: 1.) Starting from the rightmost digit, form the sum of every other digit. For example, if the credit card number is 4358 9795, then you...
The last digit of a credit card number is the check digit, which protects againts transaction...
The last digit of a credit card number is the check digit, which protects againts transaction errors. The following method is used to veryfy credit card numbers. For the simplicity we can assume that the credit card has 8 digits instead of 16. Follwing steps explains the algorithm in determining if a credit card number is a valid card.  Starting from the right most digit, form the sum of every other digit. For example, if the credit card is...
1. Given a randomly chosen 4-digit number... What is the probability... a. That there are no...
1. Given a randomly chosen 4-digit number... What is the probability... a. That there are no pairs of consecutive digits in the number b. That there are no pairs of consecutive digits in the number, if the last digit and first digit of the number could be classified as consecutive c. Given a randomly chosen six digit number: What is the probability that the number is an odd number if it contains the six digits 7-6-4-4-3-1, and is in a...
Problem Description:A very simple algorithm (Luhn Algorithm) to check whether a credit card number is valid...
Problem Description:A very simple algorithm (Luhn Algorithm) to check whether a credit card number is valid is shown below:We assume that there are 16 digits in a credit card number.Start from the first digit of the credit card number as in position 1; second digit as in position 2; so on until the last digit as in position 16;If a digit is in even numbered position, take the digit itself as its representative;If a digit is in odd numbered position,...
Question Suppose you are given a 7 digit number which is a UPC. Prove that if...
Question Suppose you are given a 7 digit number which is a UPC. Prove that if a mistake is made when scanning the number, causing one digit to be read incorrectly, then you will be able to tell that an error has been made. Extra information. A number is a Universal Product Code (UPC) if its last digit agrees with the following computations: • The sum of the odd position digits (not including the last) is M. That is we...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT