# Surfing

2016-03-12, post № 108

**art**, #animated, #animated gif, #beach, #board, #flip, #gif, #ocean, #surf, #surf board, #wave

The little pixel guy tries himself at surfing.

2016-03-12, post № 108

**art**, #animated, #animated gif, #beach, #board, #flip, #gif, #ocean, #surf, #surf board, #wave

The little pixel guy tries himself at surfing.

2016-03-05, post № 107

**mathematics**, **programming**, **Python**, #approx., #approximating, #approximation, #John Conway, #lambda, #number sequence, #sequence

An interesting nonmathematical sequence which yet has interesting mathematical properties is the Look-and-say sequence.

As every good sequence it starts with a 𝟣. From there you get each next entry by looking at the previous and saying it. The next entry will thus be “one 𝟣” or 𝟣𝟣. From there “two 𝟣” or 𝟤𝟣, then “one 𝟤; one 𝟣” or 𝟣𝟤𝟣𝟣, “one 𝟣; one 𝟤; two 𝟣” or 𝟣𝟣𝟣𝟤𝟤𝟣 and so on.

The mathematical property, although, does not lie in the entry’s value, but rather in its length.

The interesting thing about the length is, that it approximately grows by 𝜆 each time.

This constant 𝜆 can be calculated by getting the real root of a degree 𝟩𝟣 polynomial (see Nathaniel Johnston’s post for further information) or be approximated by dividing entries.

Source code: look-and-say-sequence.py

2016-02-27, post № 106

**mathematics**, **programming**, **Pygame**, **Python**, #animated gif, #automation, #black, #black and white, #carpet, #cell, #cell simulation, #cellular, #cellular automation, #cellular simulation, #fractal, #generating, #generation, #gif, #iterations, #weave, #white, #woven

The Haferman Carpet is a fractal, which kind of looks like a woven carpet. To generate it, you start with a single black pixel and apply in each cycle a set of rules.

In each generation every pixel in the carpet will be replaced by nine pixels according to the rules. A black pixel is represented by a 𝟢, a white one by a 𝟣.

Source code: haferman-carpet.py

Extra assets: haferman-carpet_6-iterations_0.png, haferman-carpet_6-iterations_1.png, haferman-carpet_6-iterations_2.png, haferman-carpet_6-iterations_3.png, haferman-carpet_6-iterations_4.png, haferman-carpet_6-iterations_5.png, haferman-carpet_6-iterations_6.png, haferman-carpet_7-iterations.gif, haferman-carpet_7-iterations_0.png, haferman-carpet_7-iterations_1.png, haferman-carpet_7-iterations_2.png, haferman-carpet_7-iterations_3.png, haferman-carpet_7-iterations_4.png, haferman-carpet_7-iterations_5.png, haferman-carpet_7-iterations_6.png, haferman-carpet_7-iterations_7.png

Jonathan Frech's blog; built 2021/04/16 21:21:49 CEST