Question

In: Advanced Math

In the equation SEND + MORE = MONEY each letter represents a different digit (0-9). The...

In the equation SEND + MORE = MONEY each letter represents a different digit (0-9). The addition is done in the usual way from right to left, first adding D and E to obtain Y (possibly with a carry-over), then adding N and R, and so on. Solve this problem using linear programming with integer and binary variables. (No credit is given for a solution without the appropriate spreadsheet model in Excel.)

Solutions

Expert Solution

Solution of LP model using EXCEL SOLVER is following:

FORMULAS:

0 1 2 3 4 5 6 7 8 9 SUM Digit
S 0 0 0 0 0 0 0 1 0 0 =SUM(B2:K2) =SUMPRODUCT($B$1:$K$1,B2:K2)
E 0 0 0 0 0 0 1 0 0 0 =SUM(B3:K3) =SUMPRODUCT($B$1:$K$1,B3:K3)
N 0 0 0 0 1 0 0 0 0 0 =SUM(B4:K4) =SUMPRODUCT($B$1:$K$1,B4:K4) SEND + MORE - MONEY
D 0 0 0 1 0 0 0 0 0 0 =SUM(B5:K5) =SUMPRODUCT($B$1:$K$1,B5:K5) =N2*1000+N3*100+N4*10+N5 =+N6*1000+N7*100+N8*10+N3 =N6*10000+N7*1000+N4*100+N3*10+N9 = =P5+Q5-R5
M 1 0 0 0 0 0 0 0 0 0 =SUM(B6:K6) =SUMPRODUCT($B$1:$K$1,B6:K6)
O 0 0 0 0 0 0 0 0 1 0 =SUM(B7:K7) =SUMPRODUCT($B$1:$K$1,B7:K7)
R 0 0 1 0 0 0 0 0 0 0 =SUM(B8:K8) =SUMPRODUCT($B$1:$K$1,B8:K8)
Y 0 0 0 0 0 0 0 0 0 1 =SUM(B9:K9) =SUMPRODUCT($B$1:$K$1,B9:K9)
SUM =SUM(B2:B9) =SUM(C2:C9) =SUM(D2:D9) =SUM(E2:E9) =SUM(F2:F9) =SUM(G2:G9) =SUM(H2:H9) =SUM(I2:I9) =SUM(J2:J9) =SUM(K2:K9)

Solution:

Letter Digit
S 7
E 6
N 4
D 3
M 0
O 8
R 2
Y 9

Related Solutions

In a lottery, each ticket has 5 one-digit numbers 0-9 on it. (with no digit repeating...
In a lottery, each ticket has 5 one-digit numbers 0-9 on it. (with no digit repeating twice) You win only if your ticket has the digits in the required order. What are your chances of winning?
1). The set of all string consisting of an uppercase letter followed by zero or more additional characters, each of which is either an uppercase letter or one of the digits 0 through 9.
For this problem, Give a BNF grammar for each of the descriptions below. show that you can get a number of positive examples of the language in the constructed grammar and also show that you are not able to get a set of negative examples in the grammar. Create a parse tree for the grammar after. 1). The set of all string consisting of an uppercase letter followed by zero or more additional characters, each of which is either an...
tell whether each of the following 4 scenarios represents more an efficiency or equity problem 9....
tell whether each of the following 4 scenarios represents more an efficiency or equity problem 9. A free market advocate asks why a government healthcare mandate should require all people to purchase health insurance equivalent to a “fully loaded Lexus.” 10. A man with headaches, caused by stress at work, wants an MRI because he thinks he may have a tumor. The doctor says that there is almost zero probability that he has a tumor, and she warns him that...
In game 77, a 7-digit winning number consisting of the digits 0 to 9 is drawn...
In game 77, a 7-digit winning number consisting of the digits 0 to 9 is drawn one after the other (they put the numbers back in the bag before drawing another number) and their digits are arranged in the order of the draw. What is the probability that the numbers drawn in non-descending sequence, i.e. the number of a drawing is at least as large as the number of the previous drawing? Also calculate this probability for the general case...
According to an English professor, the following information represents the percent of times that each letter...
According to an English professor, the following information represents the percent of times that each letter is used in the English language: E = 11.16%, A = 8.5%, I = 7.54%, O = 7.16%, U = 3.63% (E.g. 11.16% of letters found in any writing sample will be letter E's) Choose a paragraph of at least 30 words from any written source and count the number of times each vowel shows up in your paragraph. Then, perform a goodness-of-fit test...
- Determine the number of three-digit area codes that can be made from the digits 0-9,...
- Determine the number of three-digit area codes that can be made from the digits 0-9, assuming the digits can repeat. - Suppose that there are 15 people in a class. How many ways can the instructor randomly pick three students, if the order doesn’t matter? -You are playing a game at a local carnival where you must pick a card from a normal 52-card deck. If you pick a face card (jack, queen or king) you get $2. If...
For a 3 digit code with distinct numbers. (0-9) How many combinations to get the code...
For a 3 digit code with distinct numbers. (0-9) How many combinations to get the code (max)? How many combinations if you remember the middle number is 1?
Using the digits 0 through 8, find the number of different 5-digit numbers such that: a....
Using the digits 0 through 8, find the number of different 5-digit numbers such that: a. Digits can be used more than once. b. Digits cannot be repeated, but can come in any order. c. Digits cannot be repeated and must be written in increasing order. d. Which of the above counting questions is a combination and which is a permutation? Explain why this makes sense.
Consider four-digit numbers that consist of 0, 1, 2, 5, 6, and 9. a) How many...
Consider four-digit numbers that consist of 0, 1, 2, 5, 6, and 9. a) How many four-digit numbers can be formed from the digits 0, 1, 2, 5, 6, and 9 if each digit can be used only once? (the four-digit numbers can't start with 0). b) How many of those four-digit numbers are even? c) How many are greater than 2200?
in a different plan for area codes the first digit could be any number from 0-4...
in a different plan for area codes the first digit could be any number from 0-4 the secind digit was either 5,6, or 7. and the third digit could ne any number except for 4 or 6. How many different area codes are possible
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT