New Algorithm
April 14, 2024 11:33 pm
Based on some new analysis I’ve done of Nanyan numerals (as described here), I’ve discovered a new algorithm for generating Nanyan numerals. Previously, the only way I new to generate them was to factor the number and recursively figure out the Nanyan numeral for each prime factor and then combine them from lowest to highest. Or you can just find the lowest factor of a number and then combine that with the numeral for the number divided by that lowest… Read more
Coding Nanyan Numerals
January 1, 2021 5:06 pm
On the Postdiluvian blog, I gave an explanation of how Nanyan Numerals work. Now I want to show you how to create a simple Python program for converting to and from Nanyan Numerals. For this post, I’ll focus on converting Nanyan numerals to a more readable integer. The language of choice for this project is Python. Open a new file and let’s begin. We’ll start by adding the Nanyan Numeral we want to convert, and let’s choose the number 5. … Read more