A fun and interesting math puzzle

AI Thread Summary
The discussion revolves around a math puzzle involving creating a number sequence that can be read both forwards and backwards, using digits from 1 to 20 or 1 to 99 without repeating any two-digit combinations, except for double digits like 11, 22, and 33. Participants share their attempts, with one notable solution for 1 to 20 being 918716514311201, which is claimed to be optimal. The challenge of finding a valid sequence for numbers 1 to 99 is deemed impossible due to the constraints of pairing digits. The conversation also touches on the largest number for which such a sequence can exist, highlighting the complexity and intrigue of the puzzle. Overall, the thread showcases creative problem-solving and mathematical exploration.
KHanson
Messages
2
Reaction score
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
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.
 
That sure saves me racking my brains from trying get that last 99 in there! Thanks!
 
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?
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top