So first list the multiples of 32, and 30 to those numbers.
Then list the multiples of 58 and add 44 to those numbers.
One of those numbers should match.posted by Brent Parker at 7:41 AM on January 28, 2014 [5 favorites]

Brent Parker's solution method is the only one that I would expect to be within the grasp (even the "stretch your thinking") of a fifth grade class.

I defined a function y=(58x-14)/32 and used Wolfram Alpha to calculate its integer (whole number) solution, which can be found here. As you can see it's a general solution and there are a lot of valid answers less than 3000. I believe 1058 is the lowest.

Somehow I think that wouldn't get full credit.posted by telegraph at 7:48 AM on January 28, 2014

Brent Parker's solution method makes sense, and I find three numbers that way: 798, 1726, and 2654posted by JumpW at 7:53 AM on January 28, 2014 [1 favorite]

Yes, looking at Brent Parker's spreadsheet it would appear "798" would be first. The spreadsheet is the only kind of solution we saw but it reeks of counting on your fingers.posted by uncaken at 7:54 AM on January 28, 2014 [1 favorite]

Can be accomplished using code. For example, in VBA (and printing to a cell in an Excel worksheet):

Sub whatNumberAmI()
Dim i As Integer
For i = 1 To 3000
If i Mod 32 = 30 And i Mod 58 = 44 Then
Sheets("Sheet2").Cells(1, 3) = i
End If
Next
End Sub

The code declares a variable as an integer, and goes thu every integer from 1-3000 checking if the remainder when the variable is divided by 32 is 30 AND the remainder when divided by 58 is 44, and if some number satisfies that it puts that number in a certain cell in an Excel worksheet.

This code would only show the largest number that satisfies the conditions (i.e., if there were a smaller number that also satisfied the conditions, it would be overwritten by the larger number - 2654). Would probably be simple enough to list all, and I could figure that out if you want (not a VBA expert).posted by 3FLryan at 7:56 AM on January 28, 2014

Telegraph, maybe I miscalculated, but using your notation I would have gotten y=(58x+14)/32. No?

Uncaken, no offense to your granddaughter's teacher, but I can't think what he or she was trying to teach the students with this problem. How to brute-force an answer? I can't see where there is enough information for an even remotely-grade-appropriate single-value algebraic solution--it's quite a "stretch" indeed.posted by spelunkingplato at 7:56 AM on January 28, 2014 [1 favorite]

A lot of 5th grade math problems are most easily solved by enumeration AKA brute force. It's an oddly common issue with math around that level from what I saw of my kids' math homework.

Maybe they're trying to get kids to be clever but really, if you've seen one enumeration problem, you've seen one enumeration problem.

Plugging these values back into the equalities in terms of x you get four solutions: x &in; {0, 928, 1856, 2784}. Still don't have the same answers as Brent Parker. It's possible I messed something else up.posted by grouse at 8:18 AM on January 28, 2014

Let's see if there's a pattern!

The first possible candidate is 44.
44 divided by 32 has a remainder of 12

Well that's not right, so let's add 58 to it and try again
102 divided by 32 has a remainder of 6

Next!

160 divided by 32 has a remainder of 0.

12, 6, 0? That looks like it might be going down by six each time, but what happens after 0? It can't go negative... Let's keep going!
218 divided by 32 has a remainder of 26 Okay ... does the pattern continue?
276 divided by 32 has a remainder of 20 Whew! Okay well we can just follow the pattern and do easy math (adding 58 and subtracting 6) instead of hard math (dividing big numbers by 32)
334 -> 14
392 -> 8
460 -> 2 (If we don't trust our pattern we can do the division on any of these to check it)

... Now what? If we haven't figured it out to deal with this we can just do the math on 508 and see what happens.
508 divided by 32 has a remainder of 28. Fine. Let's run through our pattern a bit and add 58 and subtract 6 some more

566 -> 22
624 -> 16
682 -> 10
740 -> 4

Okay we'll divide this one out again, unless we've noticed that when it goes negative you just add 32

Checking each possible value of x against the very first equation x / 32 = N + 30, we'll find the only possible answer 2784posted by ringu0 at 8:22 AM on January 28, 2014

I don't think you can solve this without brute force. Manually trying out different values, plugging into Wolfram Alpha, or writing up VBA code are all brute force solutions.

For a fifth grader, I would not recommend writing code -- I think there's value in playing with the numbers and getting a sense for any patterns that arise. There are underpinnings of basic algebra here, as well as number theory. Math isn't just about coming up with an answer, it's also about the journey you take to find the answer. Brute force is a perfectly acceptable starting point, especially if you have nothing else to go on. Once you have some solutions, you can see how they are all related to each other (there's basically "one" solution; once you have that solution, you can repeatedly add or subtract 928 = least common multiple of 32, 58 to get more solutions) and if you wanted to do further stretch work you can play around with the parameters of the problem and discover the cases where there are no solutions at all. Doing this will build up intuition for the ideas of least common multiple and greatest common denominator and develop number sense in general.posted by leopard at 8:24 AM on January 28, 2014 [3 favorites]

I'll second GuyZero that these "stretch your thinking" problems for the kids generally seem to only be do-able to them with lots of enumeration looking for how things change / patterns. To that end, aubilenon really has the best process for this, and how I would have explained it to my kids (all the while thinking to myself WTF, how much time do they expect the kids to work on this (without calculators of course), and are they trying to kill any appreciation for math).posted by nobeagle at 9:11 AM on January 28, 2014

The seq commands produce two lists of numbers: (0030, 0062, …¸2974) and (0044, 0102, …, 2944), formatted with leading zeroes so that comm command would happily pick out common lines. I used tail to output only the highest number (= the last line).posted by scruss at 9:45 AM on January 28, 2014 [1 favorite]

It won't help you learn how to do it, but on problems like this, if you just want to check your answer, the easiest instruction to give Wolfram Alpha is to use the built-in modulo (remaninder) function and just give it the problem: x mod 32 = 30, x mod 58 = 44, 0 < x < 3000. Pops out the same 798, 1726, and 2654 given by other methods.posted by Partial Law at 10:08 AM on January 28, 2014 [1 favorite]

My approach arose out of me screwing up my brain to try to figure out what kind of solution a teacher could realistically hope for from a 5th grader, who hasn't had algrebra yet.

Honestly, learning how to use excel (or google spreadsheets or whatever) is a lot more useful.

And actually by the time I was in fifth grade I'd had some exposure to BASIC and Logo. I imagine schools are not less computery than they were 30 years ago. This would be a pretty good exercise for someone with a "simplest introduction to programming possible" level of expertise.posted by aubilenon at 10:32 AM on January 28, 2014 [1 favorite]

Yeah I take back my comment about programming. Honestly if you wanted to use this exercise to develop number sense, you could do perfectly fine with smaller numbers where the solutions take less endurance to find. I was just trying to say that there's nothing wrong with manually searching for a solution by brute force, you can learn a lot that way.

The size of the numbers here reminds me of the possibly apocryphal story of Gauss's primary school teacher assigning him the task of adding up the numbers from 1 to 100. Such a task doesn't really have any value and is meant to just take up some of the student's time (except in Gauss's case he figured out a trick that allowed him to answer the question in seconds).posted by leopard at 11:54 AM on January 28, 2014

So at the risk of digressing here... You can plug that inequality system into Wolfram Alpha...

This is fifth grade math. I too have been down this path. I once tried to do a closed-form solution to an equality of two integral equations to solve a 3rd grade math problem[1]. Do not assume that primary school math textbook authors really know 100% what the heck they're doing. Sometimes math problems are not easily solvable given the skills at hand of the students involved.

[1] - "A shape has a perimeter of 14. What is its area?" This was a for-reals 3rd (maybe 2nd?) grade math problem my son had.posted by GuyZero at 5:59 AM on January 30, 2014

Tags

Share

About Ask MetaFilter

Ask MetaFilter is a question and answer site that covers nearly any question on earth, where members help each other solve problems. Ask MetaFilter is where thousands of life's little questions are answered.