Saturday, May 17, 2025

[bfganmsg] balanced ternary

first, here are integers from -20 to 100.  to negate a balanced ternary number, swap + and -, leave 0 unchanged.

-+-+-20
-+0--19
-+00-18
-+0+-17
-++--16
-++0-15
-+++-14
----13
--0-12
--+-11
-0--10
-00-9
-0+-8
-+--7
-+0-6
-++-5
---4
-0-3
-+-2
--1
00
+1
+-2
+03
++4
+--5
+-06
+-+7
+0-8
+009
+0+10
++-11
++012
+++13
+---14
+--015
+--+16
+-0-17
+-0018
+-0+19
+-+-20
+-+021
+-++22
+0--23
+0-024
+0-+25
+00-26
+00027
+00+28
+0+-29
+0+030
+0++31
++--32
++-033
++-+34
++0-35
++0036
++0+37
+++-38
+++039
++++40
+----41
+---042
+---+43
+--0-44
+--0045
+--0+46
+--+-47
+--+048
+--++49
+-0--50
+-0-051
+-0-+52
+-00-53
+-00054
+-00+55
+-0+-56
+-0+057
+-0++58
+-+--59
+-+-060
+-+-+61
+-+0-62
+-+0063
+-+0+64
+-++-65
+-++066
+-+++67
+0---68
+0--069
+0--+70
+0-0-71
+0-0072
+0-0+73
+0-+-74
+0-+075
+0-++76
+00--77
+00-078
+00-+79
+000-80
+000081
+000+82
+00+-83
+00+084
+00++85
+0+--86
+0+-087
+0+-+88
+0+0-89
+0+0090
+0+0+91
+0++-92
+0++093
+0+++94
++---95
++--096
++--+97
++-0-98
++-0099
++-0+100

binary and balanced ternary vie to be the most elegant base.  the following list of the powers of 2 is an artistic rendition of an irrational impedance mismatch between base 2 and base 3.  previously, on log(3)/log(2): [1],[2],[3].

+2^01
+-2^12
++2^24
+0-2^38
+--+2^416
++--2^532
+-+0+2^664
+---+-2^7128
+00+++2^8256
+-0+00-2^9512
+++-0-+2^101024
+0-++0--2^112048
+-0-0--0+2^124096
++-+-0++-2^138192
+-+++++-++2^1416384
+--0000--0-2^1532768
+0+000-0+-+2^1665536
+-+-00-++---2^17131072
++++00--+00+2^18262144
+000-0-+--0+-2^19524288
+-00-+-++0+0++2^201048576
++00---0-+-+0-2^212097152
+0-0-00+0-----+2^224194304
+--+-+0+--000+--2^238388608
++----0+0+000+0+2^2416777216
+-+000++-+-00+-+-2^2533554432
+---00+-++++00++++2^2667108864
+00+0+--000-0+000-2^27134217728
+-0+-0+0+00-++-00-+2^28268435456
++0+++-+-00--++00--2^29536870912
+0-+0-++++0-+-0-0-0+2^301073741824
+-0--0-000--+++-+-++-2^312147483648
++-0+-+00-+-00-----++2^324294967296
+-+++---0-+++0-000+-0-2^338589934592
+--0-+00+0-00--+000++-+2^3417179869184
+0+0--0+--+0-+--00+0---2^3534359738368
+-+--0+0++---++0+0+--00+2^3668719476736
+++0++-+-+0+-0-+-0+0+0+-2^37137438953472
+00-+0-----0++-++++-+-0++2^38274877906944
+-00---0000++0--00-+++++0-2^39549755813888
++0-00+000+0--0+00-0000--+2^401099511627776
+0--+0+-00+--0++-0-+000-+--2^412199023255552
+--+--0++00+0++-++0--00-++0+2^424398046511104
+0++0++0-0+-+0--0--0+00-0-+-2^438796093022208
+-+0-+0--++----0+-0++-0-+-+++2^4417592186044416
+---0---+--+000+0+++-++0---00-2^4535184372088832
+00+-00+++--00+-+00--0--00+0-+2^4670368744177664
+-00++0+0-+0+0+---0-0+-0+0+-0--2^47140737488355328
++0+0-+-0--+-0+00+-+0+++-0++-0+2^48281474976710656
+0-+--+++-0++++-0+---+0-+++-+++-2^49562949953421312
+--+++-0-+++00-++0+0+--0-00--0-++2^501125899906842624
++-0-++0-00-00-0-+-0+0+-+0-0+0-0-2^512251799813685248
+-++0-0--+0-+0-+-++++-+----++--+-+2^524503599627370496
+--0--+-+--0--0---00-+++00+--++----2^539007199254740992
+0+-0++++0+-0+-00+00-00-00++--+000+2^5418014398509481984
+-0+++000-0++0++0+-0-+0-+0+-++--00+-2^5536028797018963968
+++00-00-++0-+0-0++0--0--+---+0+00++2^5672057594037927936
+00-0-+00-0-0---++0--0+-0++0+--+-0+0-2^57144115188075855872
+-0-+0--0-+-+-0+-0--0+0+++0-0+0++++--+2^58288230376151711744
++0---0+-+++++0++-0++-+00--++-+00-++--2^59576460752303423488
+0--00++--0000-+-+++0---0-+-0---00--+0+2^601152921504606846976
+--0+0+-+0+0000---00--00+-+++-00+0-+--+-2^612305843009213693952
+0++-+---+-000-00+0-0+0+--0-++0+--++0+++2^624611686018427387904
+-+-+++00+++00-+0+--++-0+0+0-0-0++-0-+00-2^639223372036854775808
+----00-0+00-00--0++--+++-+--+-++-++0--0-+2^6418446744073709551616

No comments:

Post a Comment