Frawks

Exploring non-random walks using fractions

post

Image adapted from Maze by Ann Lo. CC BY-SA 2.0

I have already shown my love for patterns in the digits of fractions with ‘Fractograms’ (see Chalkdust Issue 02). There is another novel way of geometrically representing those repeating fractions, this time inspired by the unexpected motions of pollen grains. Now read on …

Brownian motion

In 1827 Robert Brown, a botanist, was observing pollen grains in water under a microscope and noticed they ejected tiny particles that performed a constant random jiggling movement, as if they were actually alive. He realised that they were moving due to being hit by the constantly, randomly, moving particles (i.e. molecules) in the water and this observation thus became evidence for the particle nature of matter and the kinetic theory. As a high school physics teacher, I showed my students the now-standard experiment of looking at smoke particles under a microscope to demonstrate Brownian Motion. The cause for their zigzag motions comes from them being bombarded by the randomly moving particles in the air.

Einstein in 1905 went even further, by predicting how far the smoke particles would move as a function of time, based on the number of collisions they experienced and found a way of calculating Avogadro’s number, that huge constant that tells us how many particles there are in a mole (the chemical not biological ones!). And thanks to Einstein, he convinced us all that particles were real.

The random motion experiment

The fun thing about this experiment is you can either do it for real, or you can model it on a spreadsheet such as Excel. First take a sheet of orthogonal graph paper (it doesn’t have squares but is a tessellation of equilateral triangles — see below left). Now choose a vertex somewhere near the centre of the paper and mark it with a pencil. Notice each vertex has six lines coming away from it. Call the line going right (east direction) ‘one’ then the next one 60° above east (anti-clockwise), direction ‘two’ and so on anticlockwise around the vertex. Thirdly take a dice and roll it. If it comes up ‘one’ then draw a line from your starting point one unit long, following the line of the paper east (i.e. to the right on the paper) which is the chosen direction ‘one’. If the dice comes up ‘two’, draw a unit line in direction two and so on. Roll the dice again and repeat this process with as many rolls of the dice as you can stand. What you draw is called a random walk (see below right).

Orthogonal graph paper (left) and a random walk (right).

Relating this to the path of a particle in a gas performing Brownian Motion, Einstein found that the displacement of the particle from its starting point was proportional to the square root of the number of collisions it had experienced. For those who want to try it on Excel, it isn’t difficult. Have a go and see how close the correlation is.

Random and pseudo-random walks

That random walk above was in base six, as the dice had six possible values. It could be done in base ten if all ten numbers were possible as in using a ten-sided dice. We could also do it with the digits of a decimal fraction. We would have the numbers 0, 1, 2 etc up to 9. For the purposes of simplicity (ie I am a physics teacher!), I have chosen the ‘bearings’ convention of going clockwise starting with north (upwards) as zero angle. If these digits 0 to 9 are turned into directions, then ‘zero’ is north, up, and the digit ‘one’ would be 36° clockwise east, the digit ‘two’ would be 72° east and so on up to the number ‘nine’ which would be in the direction 9 x 36 = 324°. We can now plot the decimal digits of a number that has no pattern, digits that are completely random, so, how about…. pi?! The first 50 decimal places of pi are:

3.14159265358979323846264338327950288419716939937510.

Plugging these numbers into a spreadsheet, one gets the random walk shown below.

A pseudo-random walk on the digits of pi

You can find some articles online that have plotted millions of digits of pi in this way. Some where each 100 000 is in a different colour, some in different bases or in 3D, and you get some amazing multi-coloured ‘clouds’ of points that look like works of modern art, like this link for example… which one might call ‘pi in the sky’? Anyway, there is a purpose to all this. Random number generators are used in computers and it is important to see that such ‘pseudo’ random numbers show the same randomness in their digits are ‘real’ random numbers.

Non-random walks using repeating fraction digits

It was towards the end of September last year (2017) that I read an article on the BBC website about the random walk with the digits of pi. I then wondered if anyone had tried plotting the non-random digits of a repeating fraction in the same way. I searched the net and found nothing so I decided to look into them myself. Let us take a simple repeating decimal fraction. My first and favourite choice for such tests has always been 1/7. The digits of its decimal expansion are 0.142857 142857 … They repeat after every six digits. Call each digit a direction and let us go for a walk:

Digit 1 = 1. Walk one unit on a bearing 1 x 36 = 036°
Digit 2 = 4. Now walk one unit on a bearing 4 x 36 = 144°
Digit 3 = 2. Walk one unit on a bearing 2 x 36 = 072°
Digit 4 = 8. Walk one unit on a bearing 8 x 36 = 288°
Digit 5 = 5. Walk one unit on a bearing 5 x 36 = 180°
Digit 6 = 7. Walk one unit on a direction 7 x 36 = 252°

Here the cycle is complete and then occurs again. We can reproduce this walk on a graph and we see that this recurring fraction does not give a random walk, but instead a regular sort of ‘dance’ across the floor, in this case it looks to be a waltz. See the shape it has made on the graph, below left, showing the first four cycles of the pattern.

Frawks that look like flags, doves and a spanner tree.

I decided to call this type of graph a frawk. That is a non-random walk with the digits of a fraction, a fraction-walk or frawk for short. Let’s see if it catches on. My first thought on seeing the 1/7 frawk was flags, or sailboats, or even an olive branch. What do you see? So then I tried several other simple repeating fractions. See above middle, which is the first four cycles of 1/17 and looks like doves or angles, while above right the 1/19 frawk showing three cycles looks like a spanner tree. Remember, these dances would go on forever so these graphs only show the first few cycles. Fascinated with these ones, I went on to look at most unit fractions up (or is it down?) to about 1/20 000! See below a selection of some of the more interesting frawks that I found:

A gallery of interesting frawks.

This frawk of 1/61 is special in that the shape repeats every cycle by returning to the same starting point. Thus it does not actually drift across the graph but is stationary and fixed in space. It also has line symmetry that is tilted a few degrees west of north. This type of frawk seems to be uncommon. To me it looks like the head of a bull with earrings. Or if you turn it upside down, I see a chalice between two candles. I wonder what a psychologist would make of all that?! They’d come to take me away … ha ha! My neighbour said she saw an off-the-shoulder bustier. What do you see?

A methodical approach

The simplest type of frawk would be of the form $0.AAAAAAA$ … where ‘$A$’ in an integer that repeats forever, such as 1/9. This is 0.1111111 … and if plotted as a frawk it would appear as one single straight line heading away from the origin on a bearing of 036°. The next simplest would be of the form $0.ABABABA$ … where two digits alternate, such as for 1/11 which gives 0.090909 … Plotted as a frawk one sees a zig-zag line that switches between bearings 288° and 324° and the line heads generally on a bearing halfway between these two, i.e. 312°. Now if a chosen digit $B$ has a direction, there will always be a second digit $C$ such that it goes in the opposite direction and the difference between the two numbers must be 5 (as 5 x 36 = 180° which is half a turn), so $|B – C| = 5$. If we find a recurring fraction made of such a pair of digits, then it would go back and forth on itself and hence be a stationary shape. An example could be 0.27272727 … which is 3/11. Similarly a fraction of the form $0.BBCCBBCC$ … would also create a fixed line, but twice as long, so 0.22772277… which is 23/101. A more interesting fixed shape would be to find two pairs of digits $AB$ and $CD$ such that each pair has a difference of five and if the pairs are interposed, that is $ACBD$ and repeated, one can get a 4 sided fixed pattern, for example 0.2378 2378 … which is 2378/9999 and it makes a nice diamond parallelogram. See below:

Periodic frawks

There, that’s started a methodical study. The only other observation I will make at this point is that many of the frawks seem to show what I call a ‘flip flop’ pattern where a geometric shape is made on the left, say, then the same shape is made to the right, as the general direction of the frawk is forwards. The left-right shapes tend to be mirror images of each other. Does that observation continue to be common?

Engineered shapes

It occurred to me after the above study that one could create some very specific shapes related to the base of the number system adopted (ten in this case — our decimal system). If one created suitable repeating fractions with periods that were multiples or factors of ten, then some regular geometric shapes should appear. Take the fraction 1470369258/9999999999 for example. The digits were chosen to follow an arithmetical sequence ‘add three each time’ (1+3 = 4, then 4 + 3 = 7 etc). It gives the shape below left, a ten-pointed star:

Engineered frawks showing a ten-pointed star, pentagon, pentagram and decagon

Remember the article ‘Fractional Polygons’? If one was to apply the rules suggested there then this shape is actually a 10/3-agon! Look! An overlap between different branches of maths! Take the fraction 13579/99999 now, which gives a repeating decimal with the sequence of digits: 0.13579 13579 … The digits were chosen to follow another simple arithmetical sequence (add two each time) and lo and behold the frawk turns out to be none other than a pentagon! See second graph above. The fraction 26048/99999, with digits following the ‘add four each time’ rule creates a pentagram when plotted as a frawk. The repeating fraction 1234567890/9999999999 with its obvious pattern of digits gives us a decagon when plotted as a frawk. I wonder if any other simple geometrical shapes exist in this world?

Further research questions

Is there a pattern to numbers that keep a fixed shape such as 1/61? Is there any hidden pattern that is common to prime number denominators? Would frawks drawn in three dimensions reveal any further details? Four? More? Is there any pattern in the drift direction of drifting frawks? Wouldn’t the patterns make interesting t-shirt logos?! Could the moves shown in a given frawk make a real dance of an aesthetic value?

From top left: (1) The spring almost comes back on itself but slowly drifts south-east. (2) The grapevine shows that ‘flip-flop’ pattern that is common to many frawks. (3) My wife saw horses, I saw bison and it reminded me of famous cave paintings. Notice it also flip-flops symmetrically. (4) After 1/81, 1/9801 is the second in the series of epicycles (the next being 1/998001) and this one shows greater resolution to the ‘spring’. (5) My daughter saw a map, and I certainly thought it resembled Europe and Africa. (6) The snake flip-flops and wriggles sinuously north-west.

Using this method of plotting non-random walk graphs with the digits of fractions, I realised there must be some fractions’ digits that would actually spell words. Interesting! So I synthesized a string of recurring digits that would spell a phrase. See below the fraction and the frawk graph it creates…..

$$ \frac{11386 63318 36313 68331 31668 33313 72863 32739 43163 39384 31163 86339 38}{99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99}$$

So it’s true! Okay, I know. There would be another fraction, with suitably chosen digits, that would claim the opposite: ‘God does not exist’. In fact, hidden among all our rational numbers, there must be digits that spell out all the works of Shakespeare and there wouldn’t be a single typewriting monkey in sight! Apart from me that is! Oh well, perhaps I should just cut my losses and end with one very special fraction that might ensure that this article gets published:

$$ \frac{11833866833331166331368331627331372863331138663311636331728363116631162749633131668331631633927431163}{99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999}$$

Hugh Duncan and few members of the Chalkdust team, wearing Frawks T-shirts

 

Hugh Duncan graduated from UCL having studied astronomy. He taught physics and maths at the International School of Nice for over thirty years. Hugh was a punk when he started UCL in 1976 and guess what, he still is! Check out his band Old Age Spies on YouTube. He recently retired and has just had his first science fantasy book published ‘Life On Mars – The Vikings Are Coming’ inspired by his time at UCL. Check it out too!

More from Chalkdust