mscroggs.co.uk
mscroggs.co.uk

subscribe

Blog

 2016-10-08 
During my Electromagnetic Field talk this year, I spoke about @mathslogicbot (now reloated to @logicbot@mathstodon.xyz and @logicbot.bsky.social), my Twitter bot that is working its way through the tautologies in propositional calculus. My talk included my conjecture that the number of tautologies of length \(n\) is an increasing sequence (except when \(n=8\)). After my talk, Henry Segerman suggested that I also look at the number of contradictions of length \(n\) to look for insights.
A contradiction is the opposite of a tautology: it is a formula that is False for every assignment of truth values to the variables. For example, here are a few contradictions:
$$\neg(a\leftrightarrow a)$$ $$\neg(a\rightarrow a)$$ $$(\neg a\wedge a)$$ $$(\neg a\leftrightarrow a)$$
The first eleven terms of the sequence whose \(n\)th term is the number of contradictions of length \(n\) are:
$$0, 0, 0, 0, 0, 6, 2, 20, 6, 127, 154$$
This sequence is A277275 on OEIS. A list of contractions can be found here.
For the same reasons as the sequence of tautologies, I would expect this sequence to be increasing. Surprisingly, it is not increasing for small values of \(n\), but I again conjecture that it is increasing after a certain point.

Properties of the sequences

There are some properties of the two sequences that we can show. Let \(a(n)\) be the number of tautolgies of length \(n\) and let \(b(n)\) be the number of contradictions of length \(n\).
First, the number of tautologies and contradictions, \(a(n)+b(n)\), (A277276) is an increasing sequence. This is due to the facts that \(a(n+1)\geq b(n)\) and \(b(n+1)\geq a(n)\), as every tautology of length \(n\) becomes a contraction of length \(n+1\) by appending a \(\neg\) to be start and vice versa.
This implies that for each \(n\), at most one of \(a\) and \(b\) can be decreasing at \(n\), as if both were decreasing, then \(a+b\) would be decreasing. Sadly, this doesn't seem to give us a way to prove the conjectures, but it is a small amount of progress towards them.
Edit: Added Mastodon and Bluesky links
                        
(Click on one of these icons to react to this blog post)

You might also enjoy...

Comments

Comments in green were written by me. Comments in blue were not written by me.
 Add a Comment 


I will only use your email address to reply to your comment (if a reply is needed).

Allowed HTML tags: <br> <a> <small> <b> <i> <s> <sup> <sub> <u> <spoiler> <ul> <ol> <li> <logo>
To prove you are not a spam bot, please type "sexa" backwards in the box below (case sensitive):
 2016-10-06 
Thanks to Marc, I noticed that today's date is a palindrome in two different date formats—DMMYY (61016) and DMMYYYY (6102016).
This made me wonder when there will be another date that is palindromic in multiple date formats, so I wrote a Python script to find out.
Turns out there's not too long to wait: 10 July 2017 will be palindromic in two date formats (MDDYY and MDDYYYY). But before that, there's 1 July 2017, which is palindromic in three date formats (YYMMD, YYMD and MDYY). Most exciting of all, however, is 2 February 2020, which is palindromic in 7 different formats!
The next palindromic dates are shown in the following table. It will update as the dates pass.
 \(n\) Next day with \(\geq n\) palindromic formatsFormats
12 February 2025YYYYMDD
22 May 2025YYMMD,YYMD,MDYY
32 May 2025YYMMD,YYMD,MDYY
42 March 2030YYYYMMDD,MMDDYYYY,YYYYMDD,MMDYY
51 January 2110DDMYYYY,YYMDD,DDMYY,MMDYYYY,MMDYY
61 January 2211YYMMD,DMYYYY,MDYYYY,YYMD,DMYY,MDYY
A full list of future palindromic dates can be found here.
                        
(Click on one of these icons to react to this blog post)

You might also enjoy...

Comments

Comments in green were written by me. Comments in blue were not written by me.
In some of your full list you use the same format forwards and backwards. I'm just questioning why are YYMDD,DDMYY considered to be different formats when they are palendromic.
Stee
                 Reply
 Add a Comment 


I will only use your email address to reply to your comment (if a reply is needed).

Allowed HTML tags: <br> <a> <small> <b> <i> <s> <sup> <sub> <u> <spoiler> <ul> <ol> <li> <logo>
To prove you are not a spam bot, please type "hparg" backwards in the box below (case sensitive):
 2016-09-06 
This is the fifth post in a series of posts about tube map folding.
After my talk at Electromagnetic Field 2014, I was sent a copy of MC Escher Kaleidocycles by Doris Schattschneider and Wallace Walker (thanks Bob!). A kaleidocycle is a bit like a 3D flexagon: it can be flexed to reveal different parts of itself.
In this blog post, I will tell you how to make a kaleidocycle from tube maps.

You will need

Making the modules

First, fold the cover of a tube map over. This will allow you to have the tube map (and not just its cover) on the faces of your shape.
With the side you want to see facing down, fold the map so that two opposite corners touch.
For this step, there is a choice of which two corners to connect: leading to a right-handed and a left-handed piece. You should make 6 of each type for your kaleidocycle.
Finally, fold the overhanding bits over to complete your module.
The folds you made when connecting opposite corners will need to fold both ways when you flex your shape, so it is worth folding them both ways a few times now before continuing.

Putting it together

Once you have made 12 modules (with 6 of each handedness), you are ready to put the kaleidocycle together.
Take two tube maps of each handedness and tuck them together in a line. Each map is tucked into one of the opposite handedness.
The four triangles across the middle form a net of a tetrahedron. Complete the tetrahedron by putting the last tab into the first triangle. Glue these together.
Take two more tube maps of the opposite handedness to those at the top of the tetrahedron. Fit them into the two triangles poking out of the top of the tetrahedron to make a second tetrahedron.
Repeat this until you have five connected tetrahedra. Finally, connect the triangles poking out of the top and the bottom to make your kaleidocycle.
This is the fifth post in a series of posts about tube map folding.
                        
(Click on one of these icons to react to this blog post)

You might also enjoy...

Comments

Comments in green were written by me. Comments in blue were not written by me.
 Add a Comment 


I will only use your email address to reply to your comment (if a reply is needed).

Allowed HTML tags: <br> <a> <small> <b> <i> <s> <sup> <sub> <u> <spoiler> <ul> <ol> <li> <logo>
To prove you are not a spam bot, please type "hexagon" in the box below (case sensitive):
 2016-07-04 
In five blog posts (1, 2, 3, 4, 5) Gaurish Korpal present the Cross diagonal cover problem, some ideas about how to solve it and some conjectures. In this post, I will present my solution to this problem. But first, the problem itself:
Draw with an \(m\times n\) rectangle, split into unit squares. Starting in the top left corner, move at 45° across the rectangle. When you reach the side, bounce off. Continue until you reach another corner of the rectangle:
How many squares will be coloured in when the process ends?

Restating the problem

When I first saw this problem, it reminded me of Rebounds, a puzzle I posted here in 2014. To restate the problem in a similar way, we place a point in the centre of each unit square, then creating a second grid. I will call this the dual grid. The original problem is equivalent to asking, if a line bounces around the dual grid, how many corners will it pass through.
It it worth noting here that the dual grid is \(n-1\times m-1\): each side is one shorter than the original grid.
A corner cannot be travelled over more than twice: otherwise, the line would be retracing its past path; to do this requires it to have already hit a corner of the rectangle. Therefore we can calculate the number of distinct corners travelled to using:
$$\text{Distinct corners visited} = \text{Corners visited}-\text{Corners visited twice}$$

Introducing mirrors

When I solved Rebounds, I imagined the line passing through mirror images of the rectange, rather then bouncing. For our example above, it would look like this:
Looking at the puzzle in this way, it can be seen that the line will travel through \(\mathrm{lcm}(n-1,m-1)\) squares, and so hit \(\mathrm{lcm}(n-1,m-1)+1\) corners (the \(+1\) appears due to fence panels and fence posts). We have shown that:
$$\text{Corners visited}=\mathrm{lcm}(n-1,m-1)+1$$

Collisions in the mirror

To solve the problem, we need to work out how many corners are visited twice; or the number of times the line crosses itself in the rectangle.
To do this, imagine the mirror images of the red line in the mirrors. Ignoring the images parallel to the red line, and terminating the lines when they hit the red line gives the following diagram:
I have added extra rectangles to the diagram so that all the reflections that hit the red line and their starting points can be seen. The diagonal black line has been added because all lines outside that clearly cannot intersect the red line. We now need to justify two claims:
The first claim can be seen by reflecting the green lines and the parts of the red line they hit back into the top left rectangle.
The second claim can be shown in two parts:
First, each line starting from the border will meet the red line on the edge of a rectangle: this is because the green lines all start a multiple of two rectangles away, and meet at half this distance away (and half a multiple of two is a whole number).
Conversely, if a red line meets a green line at the edge of a rectangle, then the reflection of the red line in the edge (ie. the green line) must go back to a starting point on the boundary.

These two claims show that the points where the line crosses itself in the dual rectangle match up one-to-one with the interior points at which the green lines start. So if we can count these points, we can solve the problem.

Counting the interior points

The green lines will start from all points that are a multiple of two rectangles (in both directions) away from the top left. The reason for this can be seen by reflecting the first little bit of the red line in all the mirrors:
We see that the perpendicular green lines that we are interested in, plus many other irrelevant lines, start from a grid of points on the corner of every other rectangle. To count these points, we will extend them into the full square:
To make for clearer counting, I have not drawn the unit squares.
Alternatively, this square can be thought of as being made up from two copies of the triangle.
We next notice that these points can never lie on the diagonal (the diagonal drawn in the diagram): a green point lying on the diagonal would imply that the red line met a corner before it did. Taking out the lines on which the green dots never lie, we get:
We can now count the green dots. In the square above, there are \(\displaystyle\frac{\mathrm{lcm}(m-1,n-1)}{m-1}\) rectangles vertically and \(\displaystyle\frac{\mathrm{lcm}(m-1,n-1)}{n-1}\) rectangles horizontally. Therefore there are \(\displaystyle\frac{\mathrm{lcm}(m-1,n-1)}{m-1}-1\) columns of green dots and \(\displaystyle\frac{\mathrm{lcm}(m-1,n-1)}{n-1}-1\) rows of green dots. (Again, we take one due to fence posts and fence panels.)
Of these green dots, half are in the triangle of interest, so:
$$\text{Corners visited twice} = \frac12\left(\frac{\mathrm{lcm}(m-1,n-1)}{m-1}-1\right)\left(\frac{\mathrm{lcm}(m-1,n-1)}{n-1}-1\right)$$

Putting it together

We can now put the two parts together to get:
$$\text{Distinct corners visited} = \mathrm{lcm}(m-1,n-1)+1 - \frac12\left(\frac{\mathrm{lcm}(m-1,n-1)}{m-1}-1\right)\left(\frac{\mathrm{lcm}(m-1,n-1)}{n-1}-1\right)$$
And we have solved the problem.

Example

For the \(4\times6\) rectangle given, our formula gives:
$$\text{Distinct corners visited} = \mathrm{lcm}(3,5)+1 - \frac12\left(\frac{\mathrm{lcm}(3,5)}{3}-1\right)\left(\frac{\mathrm{lcm}(3,5)}{5}-1\right)$$ $$= 15+1 - \frac12(5-1)(3-1)$$ $$= 16 - 4 = 12$$
This is correct:

Disproving the conjecture

In Gaurish's most recent post, he gave the following conjecture: The highest common factor (or greatest common divisor) of \(m\) and \(n\) always divides the number of coloured squares.
After trying to prove this for a while, I found that me attempted proof required that \(\mathrm{hcf}(n-1,m-1)^2-1\) is a multiple of \(\mathrm{hcf}(n,m)\). However this is not in general true (eg. 15,5).
In fact, 15,5 provides us with a counterexample to the conjecture:
In this diagram, 26 squares are coloured. However \(\mathrm{hcf}(15,5)=5\) and 5 is not a factor of 26.
Tags: puzzles
                        
(Click on one of these icons to react to this blog post)

You might also enjoy...

Comments

Comments in green were written by me. Comments in blue were not written by me.
 Add a Comment 


I will only use your email address to reply to your comment (if a reply is needed).

Allowed HTML tags: <br> <a> <small> <b> <i> <s> <sup> <sub> <u> <spoiler> <ul> <ol> <li> <logo>
To prove you are not a spam bot, please type "regetni" backwards in the box below (case sensitive):
 2016-06-29 
In this blog post, I will present two conditions that cause a braid to fail, with reasons why. You can read more about the method of braiding we are talking about here, in part one.
In this post, we will consider the (\(a\),\(b\)) braid with \(a\) slits, taking the \(b\)th thread each time.

Some strands are never moved

If some of the strads are never moved in the braiding process, then the braid will fail. To find out when this happens, I will draw lines to show the moves that are made. For the (8,3) braid, the first move is:
Then the second move is:
And so on until we get:
For the (8,3) braid, every strand is moved at some point in the cycle.
For the (6,2) braid, however, we get the following diagram:
Now some strands are not moved and the braid will fail.
To find out when all the slits are visited, I first label the slots: the slot which starts empty is 0, then I continue numbering anti-clockwise. This numbering puts all the multiples of \(a\) at the bottom slot.
Now let's look at which slots we visit. We start at 0, then visit \(b\), then \(2b\), then \(3b\) and so on. We visit all the multiples of \(b\).
Therefore we will reach the bottom slot again and finish our loop when we reach a common multiple of \(a\) and \(b\). The first time this happens will be at the lowest common multiple, or \(\text{lcm}(a,b)\).
On the way to this slot, I visited one slot for every \(a\) we passed, so the number of slots I have visited is:
$$\frac{\text{lcm}(a,b)}{a}$$
I will visit every slot if:
$$\frac{\text{lcm}(a,b)}{a}=b$$
Or, in other words, if \(\text{lcm}(a,b)=ab\). This is true when, \(a\) and \(b\) have no common factors, or are coprime: often written \(\text{hcf}(a,b)=1\).
Therefore, if \(a\) and \(b\) are not coprime, then the braid sill fail.

The braid results in twists

Some braids, for example (13,3), result in a groups of twisted strands rather than a whole braid.
To see when this happens, imagine the (\(a\),\(b\)) braid just after a thread has been moved. Call the currently empty slit 0. The threads at positions \(a-1\), \(a-2\), ..., \(a-b+1\) have just been jumped over. If, from these threads, the thread at \(a-1\) is moved before the others, then this group of threads will form into a twist.
This will happen when \(b\) is a factor of \(a-1\), as this leads to \(a-1\) being reached before slit 0 is passed again. Therefore is \(b\) is a factor of \(a-1\), the braid will not work.

A conjecture

In this post, I have shown that if \(a\) and \(b\) are not coprime or if \(b\) is a factor of \(a-1\), then the braid will fail. From the examples I have tried (I'm compiling them here), it seems that all other braids will work. It seems difficult, however, to explain why all other braids work. I'd love to hear your ideas on how this could be shown.

What's next?

A have a few leads to follow up on, which may lead to a proof or counterexample. Vicky Neale has found instructions for making Kumihimo braids. They are created in a very similar way to my cardboard braids, so looking into the patterns you can make with them may be helpful.
@mathforge has found a mathoverflow page where quotients of the braid group are discussed. I know from past discussions that the braiding group is not exactly what I'm looking for—for example, the multiple twists is considered a member of the braiding group. However, finding the correct way to adapt the group may solve the problem. Looks like I may have to polish up on my group theory...

Until a proof of or counterexample to the conjecture turns up, we seem to be at the end of the braiding puzzle. But do not fret, there is a related problem that we can now spend some time on.
In the braids we've done so far, we have taken the same jump every time. But more complicated rules could be used: for example, we could alternate between taking the third thread and the second thread. I'm yet to find a rule with different jumps that works, so let me know if you find one before me!
                        
(Click on one of these icons to react to this blog post)

You might also enjoy...

Comments

Comments in green were written by me. Comments in blue were not written by me.
 Add a Comment 


I will only use your email address to reply to your comment (if a reply is needed).

Allowed HTML tags: <br> <a> <small> <b> <i> <s> <sup> <sub> <u> <spoiler> <ul> <ol> <li> <logo>
To prove you are not a spam bot, please type "c" then "o" then "s" then "i" then "n" then "e" in the box below (case sensitive):

Archive

Show me a random blog post
 2025 

Jan 2025

Christmas (2024) is over
Friendly squares
 2024 
▼ show ▼
 2023 
▼ show ▼
 2022 
▼ show ▼
 2021 
▼ show ▼
 2020 
▼ show ▼
 2019 
▼ show ▼
 2018 
▼ show ▼
 2017 
▼ show ▼
 2016 
▼ show ▼
 2015 
▼ show ▼
 2014 
▼ show ▼
 2013 
▼ show ▼
 2012 
▼ show ▼

Tags

coins trigonometry golden ratio manchester science festival youtube captain scarlet probability fractals matrix of minors christmas mean numerical analysis inline code ucl raspberry pi newcastle pi approximation day 24 hour maths propositional calculus manchester cross stitch binary finite element method big internet math-off estimation php dataset wave scattering convergence dinosaurs oeis dragon curves javascript correlation programming geometry light reddit books triangles numbers countdown pizza cutting platonic solids dates tmip electromagnetic field mathsteroids data visualisation mathslogicbot runge's phenomenon folding tube maps determinants wool graphs gaussian elimination chalkdust magazine pascal's triangle approximation bempp hats logic flexagons simultaneous equations asteroids harriss spiral exponential growth map projections latex logo mathsjam rhombicuboctahedron quadrilaterals advent calendar national lottery logs final fantasy graph theory weather station frobel martin gardner crossnumber polynomials pi friendly squares ternary go christmas card people maths hexapawn pac-man game show probability matrices craft fonts golden spiral bots weak imposition zines royal institution statistics gather town a gamut of games matrix multiplication video games world cup plastic ratio noughts and crosses games braiding london underground accuracy matt parker menace bodmas edinburgh game of life royal baby pythagoras london reuleaux polygons preconditioning rugby geogebra radio 4 machine learning cambridge interpolation python folding paper hyperbolic surfaces error bars sobolev spaces matrix of cofactors chess data stirling numbers bubble bobble datasaurus dozen draughts crochet recursion regular expressions turtles puzzles news fence posts guest posts phd databet chebyshev signorini conditions speed finite group gerry anderson squares sport palindromes arithmetic anscombe's quartet nine men's morris misleading statistics talking maths in public football curvature boundary element methods errors hannah fry live stream sound computational complexity sorting the aperiodical european cup tennis standard deviation stickers kings realhats inverse matrices

Archive

Show me a random blog post
▼ show ▼
© Matthew Scroggs 2012–2025