schielrn
Well-known Member
- Joined
- Apr 4, 2007
- Messages
- 6,941
Ok here is the scenario:
A father takes his son to work with him to the M&M plant. While there, the son notices a special section where there are many different size bags of M&M's. The son asks his dad if he can take back some of those M&M's to his class. The father says, you sure can, but with one condition, you can answer me the following question:
Now I can solve it using an array formula:
</SPAN>
, but am I missing a pattern somewhere to not have to calculate using brute force? Basically they printed out a paper with 1 to 150 and then he went through each number and crossed out any that were not multiples and added up all the uncrossed numbers, but not sure what that is doing for the kid? Usually these questions have some type of logic to them like last week's problem was what is the next number in the sequence?
1
3
6
10
15
And what comes after 55?
Hope that makes sense and maybe there is no pattern, but just seems odd and won't know until the teacher gives them the answer at the end of the week.
A father takes his son to work with him to the M&M plant. While there, the son notices a special section where there are many different size bags of M&M's. The son asks his dad if he can take back some of those M&M's to his class. The father says, you sure can, but with one condition, you can answer me the following question:
We have 150 bags of M&M's here and they are all numbered 1 to 150. Each bag has the number of M&M's in it equal to the number on the bag. If I tell you that you can take any bag that is a multiple of 3, 5 or 7, how many M&M's will you have to take to your class?
Now I can solve it using an array formula:
Code:
=SUM(IF((MOD(ROW(1:150),3)=0)+(MOD(ROW(1:150),5)=0)+(MOD(ROW(1:150),7)=0),ROW(1:150)))
, but am I missing a pattern somewhere to not have to calculate using brute force? Basically they printed out a paper with 1 to 150 and then he went through each number and crossed out any that were not multiples and added up all the uncrossed numbers, but not sure what that is doing for the kid? Usually these questions have some type of logic to them like last week's problem was what is the next number in the sequence?
1
3
6
10
15
And what comes after 55?
Hope that makes sense and maybe there is no pattern, but just seems odd and won't know until the teacher gives them the answer at the end of the week.
Last edited by a moderator: