A fun and interesting math puzzle

In summary, the conversation discusses a challenge of compressing data by creating a number that can be read both forwards and backwards, using the same numbers without any two-digit repeats. The conversation also explores the possibility of starting with different numbers and the limitations of creating such a number for larger ranges. Ultimately, it is determined that the largest range where such a string is possible is 1-20.
  • #1
KHanson
2
0
Here's a nice challenge that I made up thinking about compressing data one night...


Print out a number that you can read within it:

The numbers 1 to 20(easier) or 1 to 99(very hard)

Rules:
→Can be read forward or backwards and use same numbers
eg. 123 you can read 1,2,3,11,12,22,21,23,32,33
→Cannot! have any two digit repeats
eg. 121 you can read 12 foward and also backwards!

exception! any double numbers like 11 22 33 etc.

The smaller the answer in digits the better.


(easy)

Here is the answer I get going from 1 to 20 starting with writing a 0123456789 down.

1520123456789113416718

and again starting with writing 8642013579,

17418642013579112516

Is there a better number out there that is shorter yet?


(hard)

starting with the number 10 I get: (10 doesn't have to end up at the start)

795875564736032972691715211041361802248243358394450776688990

This is the best attempt so far I've gotten... I see the number 24 repeated right off the bat so this is wrong.


This is turning out to be quite interesting and quite a fun challenge. I would love to know if there is only one unique answer when you start by writing the number 10 down.
What would happen if you started with the number 61?
I would love to see some answers (either right or wrong!).
 
Mathematics news on Phys.org
  • #2
It does not matter where you start, as every number has to occur.

Here is a shorter string for 1 to 20: 918716514311201
I can show that it is optimal: With one substring "11" and n other occurences of "1", we can form at most 2+2n two-digit numbers with a 1 inside. We need 9 of them (not counting 11), therefore n>=4. This means we need at least six times a "1", and one time all other digits of course. This gives at least 15 digits.
Modifications: The 9 can be moved to the other side, you can move blocks of 2-3 digits from left to right, and all digits from 3 to 9 can be exchanged in their position in arbitrary ways. And you can mirror the whole string, of course.A similar string for 1-99 cannot exist. We just have two positions on the edges, this leaves at least 7 digits from 1-9 which are not there. There are 18 numbers containing those digits once, which gives 9 pairs (where one pair repeats the number). This is not possible, the number of pairs has to be even.
 
  • #3
That sure saves me racking my brains from trying get that last 99 in there! Thanks!
 
  • #4
Here is another puzzle: We already know that it is not possible for 1-99 (or any number larger than 99), and we know that it is possible for 1-20. What is the largest number where such a string is possible?
 
  • #5


I am intrigued by this math puzzle and the rules that have been set in place. It is a unique and creative way to think about compressing data. I have not personally attempted to solve this puzzle, but I can offer some thoughts and suggestions.

Firstly, to answer the question of whether there is only one unique answer when starting with the number 10 - it is possible that there is only one unique solution, but it would require further exploration and analysis to confirm this. It is also possible that there could be multiple solutions that meet the given criteria.

In terms of starting with the number 61, it would definitely change the outcome and could potentially lead to different solutions. This would also be an interesting avenue to explore and could potentially lead to more challenging and complex solutions.

I would suggest approaching this puzzle using mathematical principles such as combinations and permutations to systematically generate and evaluate potential solutions. This could potentially lead to a more efficient and effective way of finding the shortest possible number that meets the given criteria.

Overall, this is a fun and interesting puzzle that could potentially have multiple solutions and different outcomes depending on the starting number. I would be curious to see what other mathematicians and scientists come up with in response to this challenge.
 

1. What is the concept behind the math puzzle?

The math puzzle is based on a mathematical concept or principle, such as algebra, geometry, or logic. It requires the use of critical thinking and problem-solving skills to reach a solution.

2. How difficult is the math puzzle?

The difficulty level of the math puzzle can vary depending on the specific puzzle. Some may be relatively easy and straightforward, while others may require more advanced math skills and critical thinking.

3. Can the math puzzle be solved using different methods?

Yes, there are often multiple ways to solve a math puzzle. Some may be more efficient or elegant than others, but as long as the solution is correct, any method is acceptable.

4. How can I improve my skills in solving math puzzles?

The best way to improve your skills in solving math puzzles is to practice regularly. By trying different types of puzzles and challenging yourself, you can develop your critical thinking and problem-solving abilities.

5. Are there any benefits to solving math puzzles?

Yes, solving math puzzles has numerous benefits, including improving critical thinking skills, enhancing problem-solving abilities, and developing a deeper understanding of mathematical concepts.

Similar threads

  • Programming and Computer Science
2
Replies
37
Views
3K
Replies
4
Views
992
  • General Math
Replies
1
Views
719
  • STEM Academic Advising
Replies
1
Views
662
Replies
4
Views
930
  • Precalculus Mathematics Homework Help
Replies
5
Views
2K
  • Math Proof Training and Practice
Replies
5
Views
3K
  • Programming and Computer Science
2
Replies
37
Views
2K
Replies
33
Views
5K
  • General Math
Replies
1
Views
2K
Back
Top