UNAN - GoogolTeam/googol GitHub Wiki

UNAN, or Username's Array Notation, is a notation made by Username5243 to produce numbers.

The rules of this notation are as follows. Let # be the rest of the expression. The number before the array is the base, the number after it is the iterator. Entries can be separated by either commas or {n} separators.

a[0]b = a*b
a[#,0]b =a[#]b, a[#{x}0]b = a[#]b
a[#]1 = a
a[c+1#]b = a[c#]a[c+1#]b
Any {0} can be replaced by ,

Otherwise you follow the process below. Start scanning from the first entry, and skip the separators for now.

If the entry is 0, jump to the next entry.

If the entry is > 0 and it has a comma before it, decrease it by 1, change the previous entry to the iterator, and change the iterator to the base.

If the entry is > 0 and there's a {n+1} before it, change the 0{n+1}m+1 to 0{n}0{n}...0{n}0{n}1{n+1}m, where the first part is repeated iterator times. and change the iterator to the base.