Interesting puzzle I found

In summary, the question is asking for the minimum value of N that cannot be eliminated by choosing values of x from each row of mod p, where p is a prime number. This question becomes increasingly difficult as p increases and requires a program to find the solutions.
  • #1
PhysicForumz
1
0
A natural integer N can be written as x mod p, for instance:

N... 1 2 3 4 5 6 7 8 9 10 11 12

p=2 1 2 1 2 1 2 1 2 1 2 1 2

p=3 1 2 3 1 2 3 1 2 3 1 2 3

p=5 1 2 3 4 5 1 2 3 4 5 1 2

p=7 1 2 3 4 5 6 7 1 2 3 4 5

Etc.

The puzzle is quite difficult to state in this format but I'll have a go:

You choose any value x from each row of mod p (up to the maximum value of p, in the above case 7) and eliminate them. You have to find the minumum number N where it is impossible to eliminate all values of N.

Examples:

For p=2, the minimum N is 2. This is because eliminating any value of x (1 or 2), you will always have one remaining.

N... 1 2 3 4 5 6 7 8 9 10 11 12

p=2 1 2For p=3.

N... 1 2 3 4 5 6 7 8 9 10 11 12

p=2 1 2 1

p=3 1 2 3

Having a minimum of N=3 would not work: if you chose x=1 in the p=2 row, you'd eliminate N=1 and N=3. Then you eliminate x=2 in the p=3 row and you eliminate them all.

N... 1 2 3 4 5 6 7 8 9 10 11 12

p=2 1 2 1 2

p=3 1 2 3 1

Having a minimum of N=4 would work however. There is no combination of x you could use to eliminate all values of N. For instance, with x=1 in the p=2 row, you'd eliminate N=1 and N=3. Then whether you choose x=2 or x=1 on the p=3 row, you'd have one left. I.e N=4

For p=5.

N... 1 2 3 4 5 6 7 8 9 10 11 12

p=2 1 2 1 2 1 2

p=3 1 2 3 1 2 3

p=5 1 2 3 4 5 1

I'll leave this to you, but you could try N=6. Try some combinations of x on each row. Is it possible to eliminate every value of N with N=6? (Answer is no :p)

The question is: how do you generalise this up to any p? E.g. how would you find out the minimum N needed when p = 41? What about when p = 211? Etc.

I've had a go, but it gets very tricky after a while trying to eliminate every value of N and finding all the combinations of x to use! I've started to make a program to do this for higher values of p!

Tell me if you need any clarifications / I haven't explained the problem properly
 
Mathematics news on Phys.org
  • #2
To rephrase the question, you're asking what is the largest N such that
[tex]\{1,...,N-1\} \subseteq \bigcup_{j=1}^k(r_j+p_j\mathbb{Z})[/tex] for some values [itex]r_j[/itex] and where [itex]p_j[/itex] is the jth prime number?
 

What is the puzzle about?

The puzzle is about a set of objects or symbols that require a logical or mathematical solution to solve.

How difficult is the puzzle?

The difficulty of the puzzle can vary depending on its complexity and the individual's problem-solving skills.

Where did you find the puzzle?

I found the puzzle in a book, online, or it was given to me by someone.

Can you give any hints or tips to solve the puzzle?

I can provide some guidance, but it's best to approach the puzzle with an open mind and try different strategies to find the solution.

Why do people enjoy solving puzzles?

Solving puzzles can provide a sense of accomplishment, stimulate critical thinking, and be a fun and challenging activity.

Similar threads

  • General Math
Replies
24
Views
2K
Replies
3
Views
474
Replies
5
Views
843
Replies
1
Views
1K
Replies
4
Views
920
  • General Math
Replies
4
Views
2K
Replies
1
Views
2K
  • General Math
Replies
2
Views
1K
  • General Math
Replies
7
Views
878
  • General Math
Replies
1
Views
697
Back
Top