1
0

maths


 invite response                
2023 Sep 11, 12:07pm   3,268 views  50 comments

by komputodo   ➕follow (1)   💰tip   ignore  

this puzzle was on facebook...about 1300 people gave the answer and i think they were all wrong. They do not tell you the correct answer so I decided to see what you guys say. Nobody gave the same answer that i did.

« First        Comments 12 - 50 of 50        Search these comments

12   PeopleUnited   2023 Sep 11, 6:25pm  

FortwayeAsFuckJoeBiden says





Don’t forget “10 for the big guy”
13   stereotomy   2023 Sep 11, 7:17pm  

It's one equation with three unknowns. By the most elementary principles of linear algebra, this is a singular matrix, which necessarily has no unique solution.

EDIT: Every person should know mathematics including matrix algebra up to ordinary differential equations. Those who can't should perhaps be dealt something described in Phil Dick's short story "The Pre-Persons".

The Founding Fathers had it right - those who can't add, let alone figure our life, shouldn't be able to vote.
14   richwicks   2023 Sep 11, 7:37pm  

komputodo says


this puzzle was on facebook...about 1300 people gave the answer and i think they were all wrong. They do not tell you the correct answer so I decided to see what you guys say. Nobody gave the same answer that i did.




D=4 or 9
C=1 if D=9, C=5 if D=4
B=3, no solution if C=5
A=6

6319
0319
0019
0009
-------
6666

A+B+C+D = 6+3+1+9 = 19

How did I do?

Edit: SunnyvaleCA has the correct answer. My error was I assumed there was only a single solution, but I think using a computer is cheating. It gives you an excuse not to think.
15   Onvacation   2023 Sep 11, 7:53pm  

SunnyvaleCA says

There are two possibilities:

for a,b,c,d in itertools.product(range(0,9+1),repeat=4):
    if a1000+b100+c10+d + b100+c10+d + c10+d + d == 6666:
         print(a,b,c,d,"",a+b+c+d)

5 8 1 9 23
6 3 1 9 19

That's cheating! You're supposed to do it in your head!

But that foreign language does look pretty cool.
16   Onvacation   2023 Sep 11, 7:54pm  

Patrick says

6319
319
19
9

That works. Brute force?

I started by trying to get my right column remainders to be six and figure out how to make my carry' s plus "some number times three" to equal a remainder of six with some carry to make the next column...

That's when I gave up and scrolled down..
17   Patrick   2023 Sep 11, 7:57pm  

Onvacation says


That works. Brute force?


I did it in my head with the same reasoning richwicks describes above. I didn't look for multiple solutions though. Just figured that D had to be 9, and it flowed from there.
18   Patrick   2023 Sep 11, 8:13pm  

My mother was way better than I am at arithmetic. She would add up the total at the grocery store in her head before the cashier did it and be pretty much correct, often exactly correct.
19   komputodo   2023 Sep 11, 8:42pm  

Did I misunderstand the question? A+B+C+D is either 6319 or 5819 in my mind..not 19, not 23...convince me that I am wrong. Also I didn't understand what Patricks answer was all about...6319, 319, 19, 9. They didn't ask what is B+C+D or what is C+D or what is D. They just asked what is A+B+C+D
20   Patrick   2023 Sep 11, 8:53pm  

Lol, great point!

I found a solution for A, B, C, and D but I never answered the actual question, which asks what is A + B + C + D!

So I say the answer to that is 19.
21   SunnyvaleCA   2023 Sep 11, 9:01pm  

HeadSet says

Ah, the iterative approach. I guess you coder geniuses have used the computer's ability do hundreds of guesses to displace the need for a math guy to derive a formula.

I was wondering about a formula. One difficulty is that you have one giant equation for all 4 variables followed by inequalities on the 4 variables separately. (inequalities such as a >= 1, a <=9, b >= 1, etc). I'm really not sure how to go about solving this mathematically.
22   GreaterNYCDude   2023 Sep 11, 9:03pm  

There is nothing that states that A, B C and D need to be integer values. It's implied (and a safe assumption) but not clearly stated.

Thus

A = 6 / 1 = 6
B = 6 / 2 = 3
C = 6 /3 = 2
D = 6/4 = 1.5

6 + 3 + 2 + 1.5 = 12.5

As a check:
6321.5
+ 321.5
+ 21.5
+ 1.5
= 6666.0
23   richwicks   2023 Sep 11, 9:07pm  

komputodo says


Did I misunderstand the question? A+B+C+D is either 6319 or 5819 in my mind..not 19, not 23...convince me that I am wrong. Also I didn't understand what Patricks answer was all about...6319, 319, 19, 9. They didn't ask what is B+C+D or what is C+D or what is D. They just asked what is A+B+C+D


You must have misunderstood the question. It's asking:


ABCD +
 BCD +
  CD +
   D
----
6666


What A, B, C, and D are is unknown, but each digit would have to be between 0 and 9

Once you figure out what A, B, C, and D are, what is A+B+C+D ?

SunnyvaleCA came up with the TWO possible solutions here. I found the first solution, but not the second, so it's sour grapes for me. They are

A=6 B=3 C=1 D=9; which when added together gives you 19
A=5 B=8 C=1 D=9; which when added together gives you 23

So 23 and 19 are the answers. I don't think the person that made up the question realized there were two possible solutions.

Funny I still sometimes act like a student, and expect a single answer. It didn't even occur to me there might be two, but in a real world situation, I would assume there was 0, 1 or more.
24   komputodo   2023 Sep 11, 9:34pm  

richwicks says

What A, B, C, and D are is unknown, but each digit would have to be between 0 and 9

The digit for A is written as a 6 but it represents 6000 in the equation is what I'm saying. Therefore in the equation A=6000 not 6. When people say that a person earns 6 figures, don't they mean that they earn 100,000 or more? They don't mean 1 or more (1+0+0+0+0+0)
25   richwicks   2023 Sep 11, 9:39pm  

SunnyvaleCA says



for a,b,c,d in itertools.product(range(0,9+1),repeat=4):
    if a1000+b100+c10+d + b100+c10+d + c10+d + d == 6666:
         print(a,b,c,d,"",a+b+c+d)



@SunnyvaleCA - that Python?
26   richwicks   2023 Sep 11, 9:53pm  

komputodo says


The digit for A is written as a 6 but it represents 6000 in the equation is what I'm saying.


A in the first equation only represents a single digit, what follows it is what 10's column it is in.

At first, I thought it just wanted to know what digits A,B,C and D had to be. The question of "what is A+B+C+D" was superfluous in my opinion as that's a trivial calculation and just adds ambiguity to the problem.

Without the second part to the question, I would have said A=6000, not 6 so I understand your confusion.

Hmmmm...

5000 + 800 + 10 + 9 = 5819
6000 + 300 + 10 + 9 = 6319

Might be correct answers. I don't think the person that asked it did too much thinking about it.

I mean REALLY "ABCD" means A TIMES B times C times D with standard math notation. Now I wonder if that's what they meant. If it was in lower case and I was in Linear Algebra class, that is what I would assume they meant.

That has no solution:


#!/usr/bin/perl -w

exit (main (@ARGV));

sub main
{
for my $a (0..9)
{
for my $b (0..9)
{
for my $c (0..9)
{
for my $d (0..9)
{
if ((($a*$b*$c*$d) + ($b*$c*$d) + ($c*$d) + $d) == 6666)
{
printf ("%d %d %d %d\n", $a, $b, $c, $d);
}
}
}
}
}

return 0;
}
27   komputodo   2023 Sep 11, 9:56pm  

Patrick says

Lol, great point!

I found a solution for A, B, C, and D but I never answered the actual question, which asks what is A + B + C + D!

So I say the answer to that is 19.

how can it be 19? By that reasoning, a+b+c+d+b+c+d+c+d+d would equal 6666 but it doesn't...It equals 51. Am I fucked up? In elementary school we were taught that the 1st column is 1s, the second is 10's the 3rd is 100's and the 4th is 1000's
28   richwicks   2023 Sep 11, 10:09pm  

komputodo says


how can it be 19? By that reasoning, a+b+c+d+b+c+d+c+d+d would equal 6666 but it doesn't...It equals 51.


Would you prefer the question to be:


  A * 1000 + B * 100 + C * 10 + D
           + B * 100 + C * 10 + D
                     + C * 10 + D
                              + D
---------------------------------
  6 * 1000 + 6 * 100 + 6 * 10 + 6 = 6666


Then: "what is A+B+C+D?"

That's the real question. I think. It is poorly worded, and it has two solutions, and if I used normal mathematical notation, that's not the question, and if I use normal mathematical notation, there is no solution, at least for integers and if I don't use integers, there's an infinite number of solutions.
29   komputodo   2023 Sep 11, 10:13pm  

richwicks says

komputodo says



how can it be 19? By that reasoning, a+b+c+d+b+c+d+c+d+d would equal 6666 but it doesn't...It equals 51.


Would you prefer the question to be:


  A 1000 + B 100 + C 10 + D
+ B
100 + C 10 + D
+ C
10 + D
+ D
-------------------------------
6 1000 + 6 100 + 6 * 10 + 6


Then: "what is A+B+C+D?"

That's the real question. I think. It is poorly worded, and it has two solutions, and if I used normal mathematical notation, that's not the question, and if I use normal mathematical notation, there is no solution, at least for integers and if I don't use integers, there's an infinite number of solutions.

I think the question is just fine how it is written. It just seems to me that people are trying to overcomplicate it and that they have forgotten elementary school math.
30   richwicks   2023 Sep 11, 10:15pm  

komputodo says


I think the question is just fine how it is written. It just seems to me that people are trying to overcomplicate it and that they have forgotten elementary school math.


Show your work.

Maybe I am entirely misunderstanding the question.

Oh - I think I see the problem - where do you come up with this equation:

a+b+c+d+b+c+d+c+d+d

? I think that's where the discrepancy lies, and also, I don't agree this is a well worded question, because it has 2 solutions.
31   komputodo   2023 Sep 11, 10:27pm  

richwicks says


Oh - I think I see the problem - where do you come up with this equation:

a+b+c+d+b+c+d+c+d+d

?

to simplify, lets do

its not 2+4+4...its 24 + 4


32   komputodo   2023 Sep 11, 10:38pm  

richwicks says

I don't agree this is a well worded question, because it has 2 solutions.

I didn't see where it stated that there was only 1 solution
33   komputodo   2023 Sep 11, 10:48pm  

richwicks says

You must have misunderstood the question. It's asking:

ABCD +
 BCD +
  CD +
   D
----
6666

in my mind abcd = 6319 meaning a=6000, b=300, c=10 , d=9...bcd = 319, cd=19, d=9....total 6666
34   SunnyvaleCA   2023 Sep 11, 11:16pm  

richwicks says

SunnyvaleCA - that Python?

Yes python. However, the asterisk symbol, designating multiplication in Phython, is treated as toggling bold text on and off due to the HTML "markdown" feature. I really am liking python for small tasks: very straightforward syntax, lots of examples out there on the internet, and fantastic built-in and 3rd party libraries.

As an example of 3rd party libraries... My girlfriend had a 500 page book with the binding cut off and a self-feeding scanner that produced PDF scans but only 1-sided. She wanted a single PDF with all the pages in order. I had her scan all the pages using the automatic sheet feeder, flip the stack upside down and scan them all again. By the time that was done I had a python script that used a free 3rd party PDF utilities library to reverse the second set of pages and then interleve them with the first set. Done!
35   SunnyvaleCA   2023 Sep 11, 11:18pm  

stereotomy says

It's one equation with three unknowns. By the most elementary principles of linear algebra, this is a singular matrix, which necessarily has no unique solution.

Actually, it's 4 unknowns, but yeah. There are an infinite number of solutions except for the fact that you are constrained to integers between 1 and 9. That happens to limit it to 2 solutions.
36   SunnyvaleCA   2023 Sep 11, 11:20pm  

Onvacation says

That's cheating! You're supposed to do it in your head!

I'm working smarter, not harder.
37   Misc   2023 Sep 11, 11:30pm  

I believe everyone is overthinking it.

A=6000
B= 300
C= 20
D= 1.5

Answer:6321.5

Yep, I'll put $ on it.
38   SunnyvaleCA   2023 Sep 12, 1:16am  

Nobody said we needed to use base 10. How about bases 7 through 16. (Has to be at least base 7 because otherwise you can't write 6666 as the answer.

digits = "0123456789ABCDEF"
for base in range(6,16+1):
for a,b,c,d in itertools.product(range(0,base),repeat=4):
if a*base**3+b*base**2+c*base+d + b*base**2+c*base+d + c*base+d + d == (((6*base+6)*base+6)*base+6):
print(base,
, digits[a],digits[b],digits[c],digits[d],
,a+b+c+d)

7 6 2 6 5 19
10 5 8 1 9 23
10 6 3 1 9 19
11 5 8 5 7 25
13 6 2 A 8 26
14 5 9 B 5 30
14 5 A 1 C 28
14 6 2 B 5 24
14 6 3 1 C 22

Interpreting the last line of output as an example: in base 14, the numbers for a,b,c,d are 6,3,1,C and the sum of those is 22 (in base 10).
39   SunnyvaleCA   2023 Sep 12, 1:17am  

^^^ the "pre" tag worked great. I also searched for * and replaced with &ast; .
40   richwicks   2023 Sep 12, 2:34am  

komputodo says


richwicks says


Oh - I think I see the problem - where do you come up with this equation:

a+b+c+d+b+c+d+c+d+d

?

to simplify, lets do

its not 2+4+4...its 24 + 4





yes, and 2+4 = 6

It's adding the digit of each column together. What number do you think it ought to be?
41   richwicks   2023 Sep 12, 2:38am  

SunnyvaleCA says

Yes python. However, the asterisk symbol, designating multiplication in Phython, is treated as toggling bold text on and off due to the HTML "markdown" feature.


Yeah, you can write the symbol (once) by escaping out the ascii character sequence in html, but when you go to edit it, it turns into the ascii symbol. If you really want me to demonstrate it, ask because I have to escape out symbols to demonstrate, and I'm just up in the middle of the night for a few minutes.
42   komputodo   2023 Sep 12, 12:53pm  

richwicks says

komputodo says



richwicks says



Oh - I think I see the problem - where do you come up with this equation:

a+b+c+d+b+c+d+c+d+d

?

to simplify, lets do

its not 2+4+4...its 24 + 4






yes, and 2+4 = 6

It's adding the digit of each column together. What number do you think it ought to be?

I think the reason that we disagree is because when I see a number like 24, i think of it as 20+4 and you think of it as a 2 and a 4...when i saw the number 6666, I saw 6 thousand, 6 hundred and sixty six. and you saw 4 sixes
43   richwicks   2023 Sep 12, 1:52pm  

komputodo says

richwicks says


komputodo says




richwicks says




Oh - I think I see the problem - where do you come up with this equation:

a+b+c+d+b+c+d+c+d+d

?

to simplify, lets do

its not 2+4+4...its 24 + 4







yes, and 2+4 = 6

It's adding the digit of each column together. What number do you think it ought to be?


I think the reason that we disagree is because when I see a number like 24, i think of it as 20+4 and you think of it as a 2 and a 4...when i saw the number 6666, I saw 6 thousand, 6 hundred and sixty six. and you saw 4 sixes


??


   A
+ BA
----
  28

What is A+B?


What would your answer be in this case? Show your work. I don't understand what you don't understand.
44   komputodo   2023 Sep 12, 8:28pm  

richwicks says

I think the reason that we disagree is because when I see a number like 24, i think of it as 20+4 and you think of it as a 2 and a 4...when i saw the number 6666, I saw 6 thousand, 6 hundred and sixty six. and you saw 4 sixes

??

   ``A
+ BA
-------
  28

What is A+B?

What would your answer be in this case? Show your work. I don't understand what you don't understand.
« First    « Previous    Comments 24 - 44 of 44        Search

I see it as 24...if B is 2x10 and a is 4x1, then is B=2 or B=20?
46   richwicks   2023 Sep 12, 8:48pm  

komputodo says


I see it as 24...if B is 2x10 and a is 4x1, then is B=2 or B=20?


B = 2. Just 2. It's not 20, it's not 2x10, it's just a digit between 0 and 9, and in this case, it's 2
47   komputodo   2023 Sep 12, 8:54pm  

richwicks says

komputodo says



I see it as 24...if B is 2x10 and a is 4x1, then is B=2 or B=20?


B = 2. Just 2. It's not 20, it's not 2x10, it's just a digit between 0 and 9, and in this case, it's 2

so 6666 is not 6 thousand, six hundred and sixty six? its just 4 sixes in a row?
48   richwicks   2023 Sep 12, 9:15pm  

komputodo says

richwicks says


komputodo says




I see it as 24...if B is 2x10 and a is 4x1, then is B=2 or B=20?


B = 2. Just 2. It's not 20, it's not 2x10, it's just a digit between 0 and 9, and in this case, it's 2


so 6666 is not 6 thousand, six hundred and sixty six? its just 4 sixes in a row?


A is a single digit between 0 and 9
B is a single digit between 0 and 9
same with C and D

6666 is 6 thousands, size under and sixty six. But if you were to write "6666 = WXYZ", W=6, X=6, Y=6, Z=6.
49   UkraineIsTotallyFucked   2024 Apr 25, 10:18am  

What's the answer:


50   HeadSet   2024 Apr 25, 11:00am  

UkraineIsTotallyFucked says

What's the answer:




It is either 1 or 25, most likely 1. I see that each section multiplied by the 5 in the middle equal the number on the opposite side.

« First        Comments 12 - 50 of 50        Search these comments

Please register to comment:

api   best comments   contact   latest images   memes   one year ago   random   suggestions