Hacker News new | ask | show | jobs
by BillBohan 3160 days ago
Modular arithmetic is mentioned but base 6 is not well covered.

I started gforth and entered:

3 3 + base ! ( avoiding 6)

I was in a world where there was no 6. 5 1 + . gives 10 as a result. 6 1 - complains that 6 is an undefined word.

Decimal returns things to normal.

2 comments

Bases are about the representation of the number, not the number itself. That's why a baby can identify a group of six items despite not knowing about base 10 or digits in general.

For a more practical example, do you think the number twelve does not exist because it takes two digits to represent it?

yeah that was my first thought too. Why not go to base 6. Don't know why you'd have to fire up a program to do base 6 arithmetic though? it's just like binary or decimal or octal or hexadecimal(1+1=10, 9+1=10, 7+1=10, F+1=10)