Favorite numeral system? (user search)
       |           

Welcome, Guest. Please login or register.
Did you miss your activation email?
April 30, 2024, 12:12:53 PM
News: Election Simulator 2.0 Released. Senate/Gubernatorial maps, proportional electoral votes, and more - Read more

  Talk Elections
  Forum Community
  Off-topic Board (Moderators: The Dowager Mod, The Mikado, YE)
  Favorite numeral system? (search mode)
Pages: [1]
Poll
Question: -skip-
#1
Roman numerals
 
#2
binary
 
#3
base 3
 
#4
base 4
 
#5
base 5,6,or 7
 
#6
octal
 
#7
I don't like math
 
#8
base 9
 
#9
decimal
 
#10
base 11-15
 
#11
base 16
 
#12
base17-25
 
#13
base 26
 
#14
base 27-84284
 
#15
base 84285
 
#16
base 84286 or bigger
 
#17
all other answers
 
Show Pie Chart
Partisan results

Total Voters: 21

Author Topic: Favorite numeral system?  (Read 1038 times)
muon2
Moderators
Atlas Icon
*****
Posts: 16,798


« on: October 07, 2015, 09:06:58 AM »

What's with the votes for base 11-15? I've worked a lot with alternate bases, and this isn't a range that comes up much. At best there is base 12, but that only includes the concepts of dozen and gross (a dozen dozen), but nothing beyond that so it's limited to smaller counts.
Logged
muon2
Moderators
Atlas Icon
*****
Posts: 16,798


« Reply #1 on: October 07, 2015, 09:46:57 AM »
« Edited: October 07, 2015, 09:51:40 AM by muon2 »

Base 3 doesn't come up much, but there is an argument that it is the most efficient numeral system.

Suppose that the cost of a number is related to the product of the number of digits in a number times the number of choices for a digit (the base). For example the number 13410 has a cost of 3*10=30, 100001102 has a cost of 8*2=16, so it's more efficient to store that number in binary than decimal. This model of cost is actually not unreasonable given our knowledge of information storage.

The number of digits in an arbitrary number k is equal to the logarithm of a number in the base n it is represented by (rounded down).  Eliminating the rounding factor I can write the cost in terms of the natural logarithm (ln) as

C(k,n) = (ln k/ln n) * n.

The cost as a function of the base is minimized when the derivative of the cost function is zero.

dC(k,n)/dn = 0

Finding the derivative reduces this equation to

ln n - 1 = 0

The solution is n = e, the base of the natural logarithm. e is an irrational number approximately equal to 2.718 and can't be used as a base for discrete counting numbers. However, the closest integer to e is 3, so that is the most efficient integer base. To use my earlier example 13410 = 112223 (81+27+2*9+2*3+2*1). The cost of 112223 is 5*3 = 15, so it comes up slightly better than binary.
Logged
muon2
Moderators
Atlas Icon
*****
Posts: 16,798


« Reply #2 on: October 07, 2015, 04:49:24 PM »
« Edited: October 07, 2015, 05:30:57 PM by muon2 »

It's a reasonable question. I haven't seen a proof that 3 is better than 2 but consider this table of costs. As I look at the beginning base 3 is better than base 2 more often than the reverse. I suspect the trend continues as base 3 pulls away as the more economical choice.

rangebase 2 costbase 3 cost
81-1271415
128-2421615
243-2551618
256-5111818
512-7282018
729-10232021
1024-20472221
2048-21862421
2187-40952424
4096-65802624
6581-81912627
8192-163832827
16384-196823027
19683-327673030
32768-590483230
59049-655353233
65536-1310713433
131072-1771463633
177147-2621433636
262144-5242873836
524288-5314404036
531441-10485754039

edit: I checked 230 - 1 = 1,073,741,823 takes 30 digits in base 2 (cost = 60) and 18 digits in base 3 (cost = 54) so my supposition seems to hold.
Logged
muon2
Moderators
Atlas Icon
*****
Posts: 16,798


« Reply #3 on: October 07, 2015, 10:24:37 PM »


seems so, thus far.  I guess what we want to demonstrate is something like:

 lim  Cn=3  <  lim  Cn=2
n→∞               n→∞

Or, more broadly,

 lim  Cn=3  <  lim  Cn∈{N ∀ n≠3}
n→∞               n→∞

Proof by the Second Principle of Mathematical Induction, perhaps, assuming that you can demonstrate conclusively for 2 and 4? 

Well, it's an interesting subject.  I hadn't encountered the idea of the cost of expressing numbers before.  The next time I'm at a cocktail party during which the subject of favorite bases comes up, I'll be able to suggest 3 in a way that makes me look really smart.


The cost grows without limit because it grows as ln(k). If I look at C/ln(k) = n/ln(n) that gives me a measure of the generalized cost independent of the specific number. For base 2 it is 2.89 (same for base 4) and for base 3 it is 2.73. That adds more credence to 3 as the most efficient base.
Logged
muon2
Moderators
Atlas Icon
*****
Posts: 16,798


« Reply #4 on: October 07, 2015, 10:31:47 PM »


seems so, thus far.  I guess what we want to demonstrate is something like:

 lim  Cn=3  <  lim  Cn=2
n→∞               n→∞

Or, more broadly,

 lim  Cn=3  <  lim  Cn∈{N ∀ n≠3}
n→∞               n→∞

Proof by the Second Principle of Mathematical Induction, perhaps, assuming that you can demonstrate conclusively for 2 and 4? 

Well, it's an interesting subject.  I hadn't encountered the idea of the cost of expressing numbers before.  The next time I'm at a cocktail party during which the subject of favorite bases comes up, I'll be able to suggest 3 in a way that makes me look really smart.


The cost grows without limit because it grows as ln(k). If I look at C/ln(k) = n/ln(n) that gives me a measure of the generalized cost independent of the specific number. For base 2 it is 2.89 (same for base 4) and for base 3 it is 2.73. That adds more credence to 3 as the most efficient base.
Logged
muon2
Moderators
Atlas Icon
*****
Posts: 16,798


« Reply #5 on: October 08, 2015, 03:19:09 PM »

As k goes to infinity so does the cost so that doesn't converge. The cost normalized to the log is what I gave above, but that is only correct for a generalized cost that truly goes as ln k. The actual cost goes as floor(lognk) which is why I drew up my table. The easiest proof is probably to find an integer j such that for all integers k>j, C(k,2) >= C(k,3).
Logged
Pages: [1]  
Jump to:  


Login with username, password and session length

Terms of Service - DMCA Agent and Policy - Privacy Policy and Cookies

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Page created in 0.047 seconds with 14 queries.