Home   Jensen Archive   jWiki   Jensen News   Jensen Cloud   Jensen Programming   Jensen Family Tree   JensenDiary

jWiki

Go back to portal: IB

Return to jWiki

Related posts

Ian Bowen Martín

BrainFuck (numbering system)

Math


BrainFuck is a numbering system created by Ian Bowen and Gerard Jensen to express the way people on the BrainFuck planet counted.

A multi-base system

The main characteristic of this system is that no all the positions have the same base. Instead, there is an alterning form of 4, 3 and 10. This was intended to represent the solution BrainFuckers gave to their planet. As there were 4 berrys on every branch, 3 branches per bush, 10 bushes per root, 4 roots per valley, 3 valleys per region and so on. Therefore, a number would represent the number of total berries.

Ian afffirmed that this was a copy of the american length system.

The metabase is the alternating bases per digit. It's notation is a capital M with the metabase digits as a subindex.

Here you can see the frist 12 numbers.

M10M{4, 3, 10}
11
22
33
410
511
612
713
820
921
1022
1123
12100

Software implementations

There curretly is a java version of Brainfuck that provides conversion between decimal and brainfuck multiple metabases. It can be downloaded here.

There are only four methods that can be used. Here is the most ocmplex example that can ever been made.

BrainFuck converter = new BrainFuck();
converter.setBases(new int[]{4, 3, 10}); // {4, 3, 10} is the default so this line is unnecessary
converter.setChars("0123456789"); // "0123456789" is the default so this line is unnecessary
System.out.println(converter.decimalToBrainFuck(100)); // Output: 64
System.out.println(converter.brainFuckToDecimal("-64")); // Output: -100

Last update: 26/03/2024 22:39:50 UTC