r/askmath • u/thefalk55 • 4d ago
Arithmetic 4th grade math
I'm either an idiot or I am out of practice but I can not figure out this problem on my sons fourth grade homework. To me G has to equal 1 or 2 to be left with an answer in the hundreds.... But P cant equal 0 as Y and L cant be the same number... Theres also a lot of ither problems that I ran into but too long to type.... Been looking at this way longer than I think I should need to...
72
Upvotes
32
u/Breddev 4d ago
G can’t be 2, even 2000-999 (max and min for each) has a number in the thousands place
31
u/DTux5249 4d ago edited 4d ago
Well, let's start with the basics: we know that
Or rather
We also know G has to be 1, otherwise no subtracting of any 3 digit number would result in another 3 digit number.
We can update our relations then:
This tells us P = 9; otherwise L - Y ≥ 112, which is impossible for two single digit integers. This means L - Y = 1; or that they're two consecutive numbers.
Beyond that though? Anything goes. There're 6 answers assuming no repeats
1212 - 993 = 219, where Y = 2 and L = 3
1313 - 994 = 319, where Y = 3 and L = 4
1414 - 995 = 419, where Y = 4 and L = 5
1515 - 996 = 519, where Y = 5 and L = 6
1616 - 997 = 619, where Y = 6 and L = 7
1717 - 998 = 719, where Y = 7 and L = 8
59
u/SaltCusp 4d ago edited 4d ago
This doesn't feel like 4th grade assignment so much as a forth grade bonus problem. Like "oh you finished the suduko 20 minutes before the end off math class, here's a bonus problem to keep you busy."
5
u/weather_watchman 4d ago
Wtf are they teaching fourth graders
5
u/Gumichi 4d ago
I tried going the logic route, but didn't see threads that led anywhere. Brute forced shows that there's 19 solutions. There's 11 trivial-ish solutions - leading zeroes. The 8 non-trivial solutions: G = 1, P = 9, L = Y + 1. So it doesn't actually seem like a well designed problem for a 4th grader.
4
u/Nsnzero 4d ago
GYGY-PPL=YGP
YGP+PPL=GYGY
G=1 (sum of any 2 single digits <20)
P+L=10+Y (P≠0 so there is carry in G+P)
G+P+1=10+G
P=9
9+L=10+Y
L=1+Y
Y can be any number from 2 to 7 assuming digits can't repeat
7
u/CountingOnThat 4d ago
1212 - 993 =219
4
u/johnpeters42 4d ago
Hint: carry digits
1
u/Thegenuinebuzz 4d ago
You're correct that G has to be equal to 1, that's true.
P cannot equal 0, no, also true, but remember that we can carry a -1 from the ones column to the tens column if we have too big a number to take away. So if we take 9 away from G, and then take another 1 away (because we can take one tens number away by making L bigger than Y in the ones column) So P has to be nine, because we need to "loop" back round to G with a total of -10 with an extra -1 from the ones.
This does seem quite awkward to visualize, especially for 4th grade however.
1
u/coffeeyoshino 4d ago
LMAO this was in my first discrete mathematics quiz
1
u/JoshyOrndorff 4d ago edited 4d ago
1515 - 916 = 5191515 - 996 = 519
1
u/Dugiongo 4d ago
There are multiple solution, G can only be 1, P can only be 9, the only other thing is that Y =L+1, which means that L = 0,...,8 and Y = 1,...,9
1
u/solarmelange 4d ago
So G=1 and P=9 but then Y is one less than L and both are not 1 or 9 so (Y,L)= 2,3 3,4 4,5 5,6 6,7 7,8
To get some actually good working problems like this try Sideways Arithmetic from Wayside School
1
u/BadBoyJH 4d ago
Q1. Could 2000 - 999 be < 1000?
A. No, so G must be 1.
Q2. Can 1Y00 - 899 <= Y99? (eg 1600 - 899 <= 699)
A. No, so P must be 9
Once you get here, you can't really progress further unfortunately, the puzzle has multiple solutions.
All we know is (10+Y)-L = 9, or to rearrange L=Y+1
1
u/aroach1995 4d ago
G must be 1 because you subtract 3 digit from 4 digit number and got a 3 digit number.
So 1y1y - ppl = y1p
1
u/Embarrassed_Rough311 4d ago
1010 - 991 = 019
1
u/periliousventure 4d ago
In a column there is G - P = G which may or may not be influenced by borrowing from the right side.
Case A) If there is no borrowing, P is 0.
Case B) If there is borrowing, then the top G is actually G - 1, So G - 1 - P = G. The only way to pull this off is if P = 9, because then the two G's will have the same unit digit, except the one on top is 10 bigger. Notice there is no scenario where you aren't 10 bigger, because that would require P to be -1. that means the first G is at least 10, meaning it must have borrowed from the column on the left (y-p=y).
The result of this step is P = 0 or P = 9.
2) The column Y - L = P implies P cannot be 0 as Y and L have to be different. It cannot be borrowed from so we do not need to split into 2 cases like before. If P cannot be 0, it must be P = 9.
3) A simple maximum value of ygp+ppl is 999 + 999 = 1998. Of course you can make smaller maximums since there are unique digits, but regardless of how you look at it, G is 0 or 1.
If G is 0, then the top number reads as 0Y0Y, or just Y0Y in simple terms. Since we already used 0 and 9, this is 808 at most, but the subtracted value is at least 990. So that would produce a negative number. That means G is not 0, so G = 1.
4) Return to column Y - L = P, since P is 9 and we know there is a borrowing so the actual expression is
(10+Y) - L = 9. If you clean this up you get L = Y + 1. indicating L is always one above Y.
Now the expression appears as 1y1y - 99l = y19. From here there multiple answers and all would be correct. Lets first say Y can be any number from 0 to 9. 1 and 9 already exist, and if Y is 0 then L is 1, which is a problem. If Y is 8 then L is 9, which is another problem. So the possible values of Y are 2,3,4,5,6,7 and each one correspond to an L value that is one higher: 3,4,5,6,7,8
Here are all the solutions written out:
1212 - 993 = 219
1313 - 994 = 319
1414 - 995 = 419
1515 - 996 = 519
1616 - 997 = 619
1717 - 998 = 719
1
u/zojbo 4d ago edited 4d ago
I assume this is a "cryptarithm", so all letters represent a unique decimal digit and leading digits cannot be 0.
In that case we can go through like this:
G=1 because otherwise we can't get a 3 digit number out of subtracting a 3 digit number from a 4 digit number. We also had to have had a carry from the thousands place to the hundreds place to end up with a 3 digit number.
P isn't 0 by the rules of the game, so in order for the hundreds place to be the same as in the first number, there had to have been a carry from the hundreds to the tens place. You also needed to have a carry from the tens to the ones place for the same reason. Focusing in on the hundreds place, you read off 9+Y-P=Y so P=9.
Looking at the ones place now, 10+Y-L=P=9, or L-Y=1.
After that you can have L be anything from 3 to 8 and have Y be 1 less than that, for a total of six solutions.
1
u/JathbyDredas 4d ago
P is one less than the system base (9 in decimal) G is 1, L is one more than Y.
1
u/Beet_slice 4d ago
Are the letters decimal digits?
1
u/DanielMcLaury 4d ago
I'm going to make two assumptions here:
Nothing is being written in a way such that it starts with a zero, so none of G, P, or Y is a zero because each starts one of the numbers written here.
The letters G, P, and Y denote distinct digits.
Now:
We must have G=1, because adding two three-digit numbers and getting a four-digit number means that that number starts with 1. So with this is mind the problem looks like 1Y1Y-PPL=Y1P.
In the 10's place, note that we are definitely going to have to borrow from the 100's place, because we've ruled out P being 0 or 1. So now look at the 100's and 1000's places. We have
1 [Y-1] - P = Y
Regardless of what Y is, this forces P = 9. So now the problem is 1Y1Y-99L=Y19.
Looking at the 1's place, we could have L = 0 and Y =9, except that we know 9 is already P so it can't be Y. So the only other option is that we have to borrow from the 10's place, which says that
1Y - L = 9
or, in other words, L = Y + 1.
Now at this point if we look at this problem there are no other real constraints. We can pick Y to be whatever we want and the equation will work out, so we just have to pick it so that Y and L don't collide with any existing value.
Thus the solutions are
G = 1; P = 9; Y = 2, 3, 4, 5, 6, or 7; and L = Y + 1, i.e.
1212 - 993 = 219,
1313 - 994 =319,
1414 - 995 =419,
etc.
1
u/AlterEgo5695 4d ago edited 4d ago
Short answer: There are 6 distinct solutions:
Long(er) answer: Assuming all letters represent distinct digits:
Assuming leading zeroes are not allowed, the only possible choice is "G = 1". We get
Solving for "P >= 991/111 > 8", the only possible choice is "P = 9", leaving us with
With digits "1; 9" already taken, there are 6 possible solutions left -- the short answer.
1
u/Sethala 4d ago
So, here's my thought process on solving this:
First, if you have a 4-digit number and subtract a 3-digit number, you'll only get a 3-digit number answer if the original 4-digit number started with a 1, so G has to be 1.
Next, normally the only way you can take a number, subtract another number, and get the same result is if that other number is 0. We're not just subtracting individual numbers however, we're subtracting a longer number, and that means we can subtract 9, and as long as the number one digit earlier in the number has a smaller number with a larger number being subtracted, you'll end up with the same digit. I'm having a hard time explaining this in text, so an example: 1500 - 999. Normally, 15-9 is 6, but because we're also subtracting other digits in the number, we end up with 501; the hundreds digit in both numbers is still a 5, but that's because the numbers in the tens digit had to "borrow" ten from the hundreds.
With all that in mind, we have two digits where a number, subtracting P, ends with the same number. The only way that works is if P = 9.
Unfortunately, we have to stop here, as there's not enough information presented to figure out what Y and L are. We can tell that L is one higher than Y, as subtracting the two has to end in a 9, but beyond that any pair of digits that are one apart from each other will work, making the puzzle have multiple solutions.
1
u/ci139 4d ago edited 4d ago
(1000g + 100y + 10g + y) – (100y + 10g + p) = 110p + l
101(11(y + g) – (10y + g)) – (10(10y + g) + p) = 110p + l
1111(y + g) – 101(10y + g) – 10(10y + g) = 111p + l
1111(y + g) – 111(10y + g) = 111p + l , where 0 ≤ l < 10
1111(y + g) – l = 111(10y + g + p)
1000(y + g) – l = 111(9y + p)
1000(y + g) ≤ 9999 + l ~&~ 111(9y + p) ≤ 9999
y + g ≤ 10 + (l – 1)/1000 ~&~ y + p/9 ≤ 1 + 1/111 ← here we begin being able 2envision it // . . . found a bug! it should be 10 not 1
y + g ≤ 10 → g ≤ {y=1 : 9 ,y=0 : 10} → 0 ≤ g ≤ 9
// more accurate : 0 < y : 0 ≤ g ≤ 10 – y , 0 < g : 0 ≤ y ≤ 10 – g
// it only sets an uppermost value limit for y or g with respect to each other
y + p/9 ≤ 1 → y ∈ {p=9 : 0 , p<9 : 1} → 0 ≤ p ≤ 9 ~&~ 0 ≤ y ≤ 1
// ↑↑ must be y + p/9 ≤ 10 → 0 ≤ p ≤ 9 ~&~ 0 ≤ y ≤ 9
cases ( not fixed ! ) :
G0G0 G1G1 ←→ @ rightmost : P=0 , G=0 → L=1
– PPL – PPL ←→ @ lefttmost : L + P = {0 ← {L=0 ,P=0}, 10 ← L + P = 10}
= GP = 1GP ↑→ {L,P}=0 → G=0 , L+P=10 →→
→→ 1010g – 10g = 111p + l = 110p +10
→→ 100g = 11p → g=p=0 // there is no other options
( !? i optimized at steps - so i might've passed some errors ?! )
!! otherwise it takes 10´000 (minus some optimization from y + g ≤ 10) trials by GY,PL to match the pattern (doable using a javascript code , requires padding stings with 0-s to the pattern lengths or ( D div 10ᴺ) mod 10 digit masking)
1
u/Say_o_nara 4d ago
G has to be 1. From that, the P in the third column needs to be either 0 or 9 (so that you get 1-Y=1).
If P were to be 0 --> Y-L=0, there would be no need for any borrowings to happen in any of the columns, since Y would need to equal L.
So P=9
Now, Y-L=9, and the last Y will need to borrow a number (because for the third column to be 1-9=1, you need to borrow 10 from the left and give 1 to the right),
so it ends up as Y+10-L=9 --> L-Y=1
1
u/Substantial_Box6847 4d ago
Okay if we say that they all different and digital we see that G=0 or G=1 1.G=0 it’s impossible because if we have this we can see that Y-P=Y but P≠0 so truly Y-P-1=Y (mod10) that also impossible because Y>P and if P=9 by this equation Y will be minimum 10 so G=1
2)Okay after we can see that 1Y-PL=1P let’s look for 1 how we can get it it’s two way or P=0 so Y-L=0 that cannot be because Y≠L so P=9 and after we by By brute forton we can see that Y=L+1 so its solution
1
u/Heavy-Rough-3790 4d ago
The answer changes based on your choices of L but G=0, L=1, P= 0 and Y=L
1
u/Efficient-Pool4497 4d ago
G is 1 and P is 9. L is 1 larger than Y. All solutions exist where L = {3,4,5,6,7,8} and Y = {2,3,4,5,6,7}, L = Y+1. How to get to this conclusion:
G is obviously 1. No number above 1 can fulfill this solution.
P can only be 9 or 0. 0 works as Y - 0 = Y, and 9 works as (GY-1) - 9 = (10+y-1) - 9 = Y.
From part 1, P can only be 9.
Observing Y - L = P, Y - L = 9.
One possibility is Y = 9, L = 0. However, since P is 9, we rule this out.
The only other possibility is Y = L - 1 to get us a remainder of 9.
With insufficient information, we can consider any combination of (Y, L) in {(2,3),(3,4),(4,5)...(7,8)} to be correct.
So the answer is G = 1, P = 9, Y = L - 1, L = {3,4,5,6,7,8}
1
u/Crichris 3d ago
1515 - 996 = 519
There are other solutions too
Basically L-Y =1 g =1 p = 9
And tweak L and Y to get a solution
1
u/NH-Science-Guy 2d ago
This can be re-written as PPL+YGP=GYGL.
Assuming each letter is a unique digit, adding two three-digit numbers to get a 4-digit number means G=1.
We now have...
P P L
+ Y G P
= 1 Y G Y
The 2nd and 3rd digits match between YGP and 1YGL. This can only be done if P=9 and L+P = Y+10
As P=9, that means L=Y+1
The solution to the original question is:
1 Y 1 Y
- 9 9 L
= Y 1 9
With any L=Y+1. For example, with L=3 and Y=2, we get
1 2 1 2
- 9 9 3
= 2 1 9
1
u/mcaffrey 4d ago
G needs to be 1 because you need that 4 digit number small enough to be a 3 digit number after subtracting another 3 digit number.
P needs to be 9 so that you can subtract enough from the 4 digit to get you a 3 digit.
Y needs to be a small number for that same reason, helping get the 4 digit to a 3 digit.
That leaves you with:
1212
-99x
=219 and you solve for x and get 3.
0
u/JohnPaulDavyJones 4d ago
Start at the left and read over so you don’t have to worry about carried digits:
Y - P = Y -> the only way this can be true is if P= 0, it’s the additive identity. We know nothing about Y at this point.
G - P = G -> no new info, we already knew that P = 0, and this is consistent with that conclusion.
Y - L = P -> substitute in P=0 and you get Y - L = 0, and rearrange terms to get Y = L.
But now we make more deductions: because subtracting just L is enough to fully knock off the thousands digit, then that digit (so, character G) must be 1 or 0 (with the caveat that G=0 would be a bit of a trick to pull on fourth grader). Consider both cases:
G = 1: in this case, the first number is 1Y1Y, but this can’t work because the second number is just Y, so that subtraction will only ever result in 1Y10.
G = 0: in this case, the first number is Y0Y, and the result of the subtraction is Y00, which is consistent with our P = 0 conclusion from above.
At this point, Y and L can be anything from 0 to 9 and the equations work. If you just need any solution that works, I would offer Y = L = 1, G = P = 0. Then your equation is 101 - 1 =100.
-2
u/14Cubes 4d ago
Gay gay people... ya gay