Can a Grasshopper Reach Infinite Points on a Number Line?

  • Thread starter niwaone
  • Start date
  • Tags
    Thinking
In summary, the conversation discusses three problems: 1. Finding all points on a number line that a grasshopper can reach starting from the origin, given its ability to jump p or q inches right or left. 2. Distributing two types of desserts (apple pie and birthday cake) among eight guests, with the requirement that at least one person receives both a piece of cake and a piece of pie. 3. Determining if it is always possible to open a 4x4 grid lock with 16 keys by switching the orientation of one key at a time, with the additional rule that all keys in the same row and column switch orientations as well. The conversation also includes attempts at solving the problems and discussions on the
  • #1
niwaone
8
0

Homework Statement


1. A grasshopper sitting on the number line can jump p or q inches right or left. Find all points on the line the grasshopper can reach starting from the origin (i.e. at zero).

2.Say exactly eight people show up to your birthday party, where there are two types of desserts: apple pie and birthday cake. As the host of the party, you have to make sure that one or more of the guests get a piece of pie, and one or more of them get a piece of cake. In how many different ways can you distribute the desserts, given that at least one person gets both a piece of cake and a piece of pie?

3. An alien lock has 16 keys arranged in a 4 × 4 grid, each key is either pointing horizontally or vertically. In order to open the lock, you must make sure that all the keys must be vertically oriented, by switching the orientation of one key at a time. When a key is switched to another position, all the other keys in the same row and column automatically switch their orientations too (i.e. vertical to horizontal, horizontal to vertical). Is it true that no matter what the initial positions of the 16 keys are, it is always possible to open
this lock?


The Attempt at a Solution


1. i think the grasshopper can jump infinite points on the line but I can't prove?
2. is it right to divide each cake and pie into 8 pieces and distribute to the 8 people so each of them can get both a piece of cake and pie?
3.someone please help me to solve this question because i think it's impossible to open the lock, but there may be another way to solve it (this reminds me of the rubik cube)

Thank you very much!
 
Physics news on Phys.org
  • #2
1. Suppose the grasshopper can jump 6 points to the right and 3 points to the left. Could it jump to "2"?

2. Is rather poorly worded, since it only stipulates that at least 1 person receive both. It doesn't require each receive a piece of both. Thus, you could also distribute it such that 1 person receives a piece of both, and everyone else receives only a piece of cake (there are a lot more combinations as well, which since this is a precalc problem, I say it is poorly constructed).

3. Again, a far too complex problem for precalc, but all you need to do is come up with a single example that doesn't work, rather than prove that it is possible.
 
  • #3
(1) see daveb's suggestion. Another one to consider: p=5/7, q=2/3

Note that (2) asks how many solutions, not for one solution. While giving everyone a slice of each works, so do many others (infinitely many if the number of pieces is unlimited), including giving just one person a piece of each (presumably "you", since it's your birthday).

One observation that might help you with (3) - and a way in which it is far far simpler than Rubik's cube - is that moves are commutative.
 
  • #4
Joffan said:
(1) see daveb's suggestion. Another one to consider: p=5/7, q=2/3

Note that (2) asks how many solutions, not for one solution. While giving everyone a slice of each works, so do many others (infinitely many if the number of pieces is unlimited), including giving just one person a piece of each (presumably "you", since it's your birthday).

One observation that might help you with (3) - and a way in which it is far far simpler than Rubik's cube - is that moves are commutative.

can you explain further for number 3? I don't know how it's simpler?
 
  • #5
If I turn key A, then B, it's the same result as turning key B then key A. And in general, if I make make a sequence of key turns, the order is irrelevant; the result is the same.

This allows you to limit the number of different possible move sets.

Another possible reduction of the question would be: Is there a move set that results in just one key being turned, or is this impossible?
 
  • #6
Joffan said:
If I turn key A, then B, it's the same result as turning key B then key A. And in general, if I make make a sequence of key turns, the order is irrelevant; the result is the same.

This allows you to limit the number of different possible move sets.

Another possible reduction of the question would be: Is there a move set that results in just one key being turned, or is this impossible?

So there's no way to unlock it, right?
 
  • #7
niwaone said:
So there's no way to unlock it, right?

Guessing is not the same as mathematics :smile:

Guessing wrong is even worse. Find me the set of keys to turn that results in changing only key C2.
 
  • #8
Joffan said:
Guessing is not the same as mathematics :smile:

Guessing wrong is even worse. Find me the set of keys to turn that results in changing only key C2.

What do you mean by changing only key C2:smile:?
My opinion: there is no way to unlock it because the diagram of the lock is not given and we can't just predict the way we want. Also, the question just said the 4*4 grid with some keys are vertical and horizontal, we can't find a unique way to change all the keys' directions to be vertical
What do you think about this question? :biggrin: If you know, please give me some hints? Thank you very much :smile:
 
  • #9
There is a way to change only one key (any key - no keys are special). Therefore any locked state can be changed to the unlocked state one key at a time.

Imagine that the current state is that only C2 is horizontal. Find the unlocking move set.

[The lock is a 4x4 grid of keys. I have jumped ahead and numbered these with a letter [A..D] for the row and a number [1..4] for the column. Turning A1 means that A2, A3, A4, B1, C1 and D1 also turn.]
 
  • #10
Joffan said:
There is a way to change only one key (any key - no keys are special). Therefore any locked state can be changed to the unlocked state one key at a time.

Imagine that the current state is that only C2 is horizontal. Find the unlocking move set.

[The lock is a 4x4 grid of keys. I have jumped ahead and numbered these with a letter [A..D] for the row and a number [1..4] for the column. Turning A1 means that A2, A3, A4, B1, C1 and D1 also turn.]

so it seems possible to unlock this lock but like I say we need proofs to prove that this is possible. Can you show the detail explanation? Thank you :confused:
 
  • #11
The proof is a description of how to change one key at a time, and the argument that this can be applied repeatedly.

I did start at both ends of the problem. The idea that moves are commutative AND that a move is self inverse (A2.A2 = 0) means that any possible keymove sequence can be reduced to a move set which involves turning some of the keys once only. This means that the number of different key moves is 2^16 (each key is either moved or not). The number of different lock states is also 2^16 (each key is either horizontal or vertical). If I could show that two different (reduced) move sets result in the same state, then it would be true that some lock state does NOT have a corresponding move set, and that that lock state cannot be unlocked. I would NOT then have to actually show that locked state, but any single key, turned, would be such a state, because the ability to unlock a grid with a single horizontal key implies an ability to unlock the whole grid from any state.

Exercise:
If, starting from a unlocked state, I turn a full row of keys one after the other (with other keys responding to each turn of course), what is the grid state at the end?
 
Last edited:
  • #13
LCKurtz said:
Please note Dick's comment in

https://www.physicsforums.com/showthread.php?t=560848

that these problems are from an entrance exam.

Also note that I'm not saying giving help is a bad thing. We don't know that the context of these problems is the entrance exam, they may just have been borrowed from it. My main point is that niwaone doesn't seem to be contributing much. Don't contribute until you start getting something back. Definitely don't provide anything like complete solutions.
 
  • #14
Dick said:
Also note that I'm not saying giving help is a bad thing. We don't know that the context of these problems is the entrance exam, they may just have been borrowed from it. My main point is that niwaone doesn't seem to be contributing much. Don't contribute until you start getting something back. Definitely don't provide anything like complete solutions.

I dropped an email to the link given in that college's pdf file pointing out these threads and received an immediate reply which indicated they weren't too happy about it.
 
  • #15
LCKurtz said:
I dropped an email to the link given in that college's pdf file pointing out these threads and received an immediate reply which indicated they weren't too happy about it.

Ok. So now what? While I have an intrinsic belief there is no profit in cheating, hence niwaone won't do terribly well anyway. But nothing in their exam bans outside consulting. Did you ask the moderators if this should be removed? This is too bad. They were interesting questions.
 
  • #16
Dick said:
Ok. So now what? While I have an intrinsic belief there is no profit in cheating, hence niwaone won't do terribly well anyway. But nothing in their exam bans outside consulting. Did you ask the moderators if this should be removed? This is too bad. They were interesting questions.

No, I didn't contact the moderators. I think this is just the tip of the iceberg and that we here at PF are just deluding ourselves if we think this doesn't happen all the time. It is a fact of life for all instructors that with the internet being so available, you can never know that the work you are grading belongs to the students who turned it in. I think they just have to live with it and act accordingly. Makes me glad I am retired.

Still, I think PF performs a valuable function for those who use it properly. So now what? I think I will just continue on and not worry much about it. :smile:
 
  • #17
LCKurtz said:
No, I didn't contact the moderators. I think this is just the tip of the iceberg and that we here at PF are just deluding ourselves if we think this doesn't happen all the time. It is a fact of life for all instructors that with the internet being so available, you can never know that the work you are grading belongs to the students who turned it in. I think they just have to live with it and act accordingly. Makes me glad I am retired.

Still, I think PF performs a valuable function for those who use it properly. So now what? I think I will just continue on and not worry much about it. :smile:

Yeah, that's my attitude as well.
 
  • #18
I was thinking about the pie question (#2).

Of the eight guests, each of whom either has the pie or does not, and has the cake or does not, there are clearly 4^8 states (when counting multiple helpings of the same dessert as one). Some number of those states will include at least one guest who has both pie and cake - that, I assume, is the number we are after. The complement set, where no guest samples both desserts, is easier to establish - in this case each guest has only three possible states, not four.
 

What are "Brainy thinking problems"?

"Brainy thinking problems" refer to complex and challenging cognitive tasks that require critical thinking, problem-solving, and analytical skills.

Why are brainy thinking problems important?

Brainy thinking problems are important because they stimulate and challenge the brain, leading to the development of new neural connections and improved cognitive abilities. They also help individuals to think more creatively and come up with innovative solutions to complex problems.

What are some examples of brainy thinking problems?

Some examples of brainy thinking problems include puzzles, logical reasoning tasks, math problems, and scientific experiments. These tasks require individuals to use their critical thinking skills to analyze, evaluate, and come up with solutions.

How can one improve their brainy thinking abilities?

One can improve their brainy thinking abilities by engaging in activities that challenge the brain, such as solving puzzles, playing strategy games, and learning new skills. Regular exercise, a healthy diet, and getting enough sleep can also contribute to improved brain function and cognitive abilities.

What are the benefits of brainy thinking problems?

Engaging in brainy thinking problems can have several benefits, including improved problem-solving skills, enhanced memory and concentration, increased creativity, and a sharper mind. It can also help prevent cognitive decline and improve overall brain health.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
11
Views
6K
Replies
66
Views
4K
Replies
14
Views
2K
  • Astronomy and Astrophysics
Replies
4
Views
1K
  • Differential Geometry
Replies
27
Views
5K
Replies
10
Views
2K
Replies
3
Views
268
  • Special and General Relativity
Replies
29
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
3K
  • STEM Academic Advising
Replies
1
Views
892
Back
Top