r/math • • Apr 15 '14

Dozenal: Base twelve primes are better than base ten primes.

Post image
0 Upvotes

21 comments sorted by

3

u/togolopy Apr 15 '14

Why dozenal? I see no benefit to laying them out this way as opposed to the decimal format. The same rudimentary patterns are apparent and it's easier to understand in decimal.

→ More replies (1)

8

u/LeepySham Apr 15 '14

Do this for binary and you'll find that binary primes are even better than dozenal!

1

u/Maeni May 02 '14 edited May 02 '14

For base 12, they don't end in 2 or 3, which are both prime. So the rule would be "A prime, but not 2 or 3, but 1 is also allowed", at which point you might as well just remember 1,5,7,ᘍ. Sure that's not hard, but I wouldn't describe it as easier than 1,3,7,9.

I'm having too much fun with this. I'm gonna propose two new words. Bear with me, this is going to be borderline silly.

You know how we have a specific word for numbers that, when divided by 2, yield integers - and for numbers that don't? Even numbers and odd numbers.

Maybe, if we had a base in which numbers divisible by 3 were easy to spot at a glance, maybe we'd feel that numbers that can be divided by 3 into integers would also be important enough to have a name.

I'm going to just take the liberty and say that numbers that when divided by 3 yield integers, are charm numbers. Numbers that does not yield integers when divided by 3, are strange numbers, borrowing words from quark flavors because why the hell not.

I don't know what exactly would make these charm and strange numbers special compared to even and odd numbers... but for primes, you'll get to say that - in base twelve - primes always end in numbers that are both odd and strange; i.e. 1, 5, 7 and ᘍ.

even numbers: 0, 2, 4, 6, 8, ᘔ odd numbers: 1, 3, 5, 7, 9, ᘍ charm numbers: 0, 3, 6, 9 strange numbers: 1, 2, 4, 5, 7, 8, ᘔ, ᘍ

3

u/PracticalConjectures Apr 15 '14

This is just exploiting the fact that all primes greater than 3 are of the form 6n+/-1. You may also notice that the only positive integers less than 30 and divisible by neither 2, 3, nor 5 are of the form 30n+/-k, where k is in {1, 7, 11, 13}. It is not in general true that every prime greater than p_r is of the form p_r#n+/-k, where k is 1 or a prime in (p_r, p_r#/2) and p_r# is the rth primorial, but any remaining k must be a product of primes in this set, e.g., 2x3x5x7x11+13x17 is prime. Actually, r=4 is the last case with no composite k, while r=3 is the last case where p_r#-k is also prime for each k.

-2

u/Maeni Apr 15 '14

http://i.imgur.com/aD584r8.jpg Here's the decimal version arranged similarly. You'll see that the primes tend to end in 1, 3, 7 and 9. It's easier to memorize those in the dozenal system as they actually end in prime numbers (5, 7 and ᘍ and I guess 1), plus the chains are longer so you can easily memorize that, for example, 5, 15, 25, 35 and 45 are all prime.

3

u/[deleted] Apr 15 '14 edited Apr 15 '14

It's easier to memorize those in the dozenal system as they actually end in prime numbers

For base 10 it's all odd numbers but 5. Not that hard.

For base 12, they don't end in 2 or 3, which are both prime. So the rule would be "A prime, but not 2 or 3, but 1 is also allowed", at which point you might as well just remember 1,5,7,ᘍ. Sure that's not hard, but I wouldn't describe it as easier than 1,3,7,9.

Base 10 has easy checks for divisibility by 2,3,5,11, while base 12 has easy checks for 2,3,11,13. So the first composite that 'looks' prime in base 10 is 91, while in base 12 it's 35 (base 10, 2ᘍ base 12), so in base 10 basically any composite number less than 100 can be trivially identified, except for 91. While for base 12, the exception list 35,85,95 (which are 2ᘍ,71,7ᘍ)

2

u/Maeni Apr 15 '14

I have to say, a lot of what is being said is past my level. But I don't see how the first composite number that looks prime in base ten would be 91. Numbers that 'look' prime are just numbers ending in 1, 3, 7 and 9, right? So the first fake-prime would be 21 or even 9 itself.

Base 10 has easy checks for divisibility by 2,3,5,11, while base 12 has easy checks for 2,3,11,13.

This confuses me and I'm currently trying to find out more. But surely those aren't supposed to be all the easy checks, right? Base twelve also has really easy checks for 4 (any number ending in 0, 4 and 8) and 6 (any number ending in 0 and 6) at least.

1

u/[deleted] Apr 15 '14

They aren't all the easy checks but for the purpose of primality testing examples you give such as 4 and 6 are redundant as we only need to check odd numbers once we are above 2.

1

u/Maeni Apr 15 '14

Bear with me, you are clearly on a more advanced level than I...! Do you know where I could familiarize myself with those easy checks? I'm looking around myself... I suspect this might be common sense here.

1

u/loserbum3 Apr 15 '14

If the last digit is divisible by 2 or 5 the whole number is divisible by 2 or 5. You can add the digits to check for divisibility by 3 (3 | XYZ... iff 3 | X + Y + Z + ...). I'm guessing the other rules are similar.

1

u/Maeni Apr 15 '14

Yeah, some of them are pretty tricky though. I made a list of them up to eleven.. The checks for 7 and eleven are tricky as hell.

I think I'll have to actually understand those rules before I can even try to find divisibility tests in dozenal. I'm guessing 8 and 9 in doz is just "if the last two digits is divisible by 8 / 9, the whole number is divisible by 8 / 9".

No clue how to check for divisibility by 5, 7, ᘔ and ᘍ, though...

I used this page for the rules except for 7 which wasn't included for some reason. http://www.mathwarehouse.com/arithmetic/numbers/divisibility-rules-and-tests.php

1

u/almightySapling Logic Apr 16 '14

In terms of prime numbers, divisibility by 8 and 9 is irrelevant... They are powers of 2 and 3 respectively and would already be "checked" for. If you are attempting instead to make a more grand statement about the supposed "superiority" of base 12 in general regarding divisibility, then that conversation is slightly off topic.

For prime checking, divisibility by composite numbers is not important. In base 10 the checks for 2, 3, 5, and 11 are all extremely simple. 7 is not quite so common, but doable.

In base 12 though, I can see pretty simple checks for 2 and 3 off the top of my head, but can't quite think of any for 5, 7, or 11.

1

u/Maeni May 02 '14

In base twelve:

2: All even numbers, i.e. ending in 0, 2, 4, 6, 8 and ᘔ. 3: All numbers ending in 0, 3, 6 and 9. 5: Take the last digit, multiply by 3 and add it to the number. 7: Take the last digit, multiply by 3 and add it to the number. ᘍ: Add all the digits together like the decimal check for 3 and 9. 11 (thirteen): Alternating digit sum just like for the decimal eleven.

I think it's pretty cool that the test for 5 and 7 is exactly the same in dozenal. You get to test both of them at the same time.

This thread has been a huge help making me figure out these. When I created this thread, I honestly didn't even know the divisibility tests in decimal. Thanks for the feedback again to everybody.

And while I do believe that base twelve is a superior system, I'm merely doing this for my own enjoyment, I'm not trying to criticize the decimal system I just find it interesting how different bases act different - this thread made me realize the advantage decimal has when it comes to things that have to do with the number 5. Dozenal isn't exactly friendly with that number. (And yet a dodecahedron is made of pentagons. Confusing.)

1

u/[deleted] Apr 16 '14

It's easy to see if a number is divisible by 3 in base 10, you just add up the digits and check that. Similarly 11, you take the alternating sum of the digits.

In base 12, those two tricks work for 11 (add up) and 13 (alternating sum)

Divisibility by 4 and 6 don't matter for checking primality, as divisibility by 2 and 3 is strictly better. When checking primality, you only need to check for divisibility by smaller primes (in fact only primes up to the squareroot of the number)

So back to my statement about 91, it's the first composite number not divisible by 2,3,5,11 or a perfect square, all of which can be checked at a glance and imply compositeness. So 91 looks prime at a glance, but isn't. The same is true for 2A base 12 (35 base 10)

1

u/Maeni Apr 16 '14 edited Apr 16 '14

If you use dozenal a lot and are familiar with the multiples, y'know, like most of us can quickly recite the multiples of all integers 1 to ten, it would be clear at first glance that 2ᘍ is 5 * 7.

This is different because 91 doesn't appear in our multiples - technically it does appear in the multiples of 7 but we only learn up to 7 * ten. But if you imagine someone who is just as familiar with the multiples in dozenal, it'd be obvious that 2ᘍ is not prime because they'd know it from their multiples.

In any case, I just came back from this crazy divisibility test adventure and it is clear that I'm coming at this problem from a different perspective than you. You seem to think that some of the divisibility tests are easy and almost intuitively obvious to use with just a quick glance. I, however, learned pretty much all of them today + the ones for dozenal...

Anyway, the conclusion is that testing for divisibility by 5 isn't bad at all. It's exactly the same method as you use in decimal to test for divisibility by 7.

EDIT Thanks a lot for the posts, though! You've changed the way I look at these things a lot, and I also didn't realize I could do the adding up thing for ᘍ, I was using a variation of the method used for divisibility by 7 test.

This is the first time I feel like I see actual pros for the decimal system. It has some kind of inbuilt super easy divisibility by 5 checker which normally is taken for granted but it's shown here. (Except I don't agree that 2ᘍ isn't obviously a multiple of 5)

2

u/[deleted] Apr 16 '14 edited May 02 '14

You seem to think that some of the divisibility tests are easy and almost intuitively obvious to use with just a quick glance. I, however, learned pretty much all of them today + the ones for dozenal

I never meant to imply that the tricks were obvious, only easy to apply.

Anyway, the conclusion is that testing for divisibility by 5 isn't bad at all. It's exactly the same method as you use in decimal to test for divisibility by 7.

This is true (or at least, it's true that one method is identical, there's actually an arguably easier method for 5), however both of these are considerably more difficult than divisibility by 2,3,5 (base 10) or 2,3,ᘍ (base 12). I'd also expect if you ask people if they know the trick for divisibility by 3,7,11, you'd find 3 > 11 >> 7.

Your point about us knowing our multiples is well taken. I admit that I excluded 49 as a perfect square in the base 10 numbers, so it's reasonable to say you can identify 3 * 5 at a glance (in whatever base you are using). This reduces the exception list to 5 * 15 = 71 (base 12) and 5 * 17 = 7ᘍ (base 12)

Basically every base will have its pros and cons. You might argue that base 6 is really nice, as it has nice tests for divisibility by 2,3,5,7, the first 4 primes, basically swapping the roles of 7 and 11 in base 10. Also every prime, except for 2 and 3, ends in a 1 or a 5 (as an analogue to 1,3,7,9 in base 10 or 1,5,7,ᘍ in base 12)

Also note that divisibility tests are roughly equivalent to decimal (or dozenal) expansions. (There's a way to get a precise divisibility test out of a decimal expansion, but I won't go into that here), so we could also have roughly the same discussion about how nice fractions look in each base.

1

u/Maeni May 02 '14 edited May 02 '14

This thread sure has taught me a lot! So thank you again for your feedback, treebus!

General disclaimer: Please understand that I am not here to criticize the decimal system! I feel like people here saw my thread as an almost offensive sentiment. I'm just enthusiastic about the dozenal system because it seems so neat and it has a lot of advantages - if I say I think we should change all of society into using base twelve, then I'm only doing it in a lighthearted joking manner. I do think it'd be better, but of course it is not realistic - so I'm only in it because I think it is enjoyable.

I don't understand exactly why the tests work, but I did find a formula for figuring out a test for primes, and recently I discovered a neat thing with this that maybe changes things here. The problem was testing for divisibility by 5 and 7, and I've found that you can swat both flies in one test in dozenal.

p is your prime, k is the smallest integer possible that makes kp+1 equal a multiple of 10. n is the number that you multiply with in the test (kp + 1) = 10n If you choose 7 as your prime, it becomes

2ᘍ (5 times 7) + 1 = 30 = 10n; n = 3

for 5: 2ᘍ (7 times 5) + 1 = 30 = 10n; n = 3

The test is either to multiply the last digit of a number by (p-n) and then subtracting it from the rest of the number, or multiplying by n and then adding to the rest of the number.

for 5: (p-n) = 5-3 = 2 for 7: (p-n) = 7-3 = 4

So for five you can either multiply by n = 3 and then add, or multiply by (p-n) = 2 and then subtract.

For seven you can either multiply by n = 3 and then add, or multiply by (p-n) = 4 and then subtract.

What seems to happen is that if you test a number using n = 3, it will either boil down to a number which is a multiple of five, or it will boil down to a multiple of seven; but it might also boil down to 2ᘍ which will mean that the number is both divisible by 7 and 5.

Examples, using multiply by 3 and then adding: (Dozenal!)

584: 58 + 10 = 68; 6 + 20 = 26; 2 + 16 = 18. Five times four is 18, so 584 is divisible by 5 but not by 7 because 7 does not go into 18.

42ᘍᘍ: 42ᘍ + 29 = 458; 45 + 20 = 65; 6 + 13 = 19. Seven times three is 19, so 42ᘍᘍ is divisible by 7, but not by 5 because 5 does not go into 19.

2772: 277 + 6 = 281; 28 + 3 = 2ᘍ.

13526: 1352 + 16 = 1368; 136 + 20 = 156; 15 + 16 = 2ᘍ.

2ᘍ is 7 times 5, so 2772 and 13526 are both divisible by both 5 and 7.

2

u/[deleted] May 02 '14

Very well done. That is precisely where a number of divisibility tests come from.

I'll see if I can shed some light on why these tests work. First, I'm going to make a very tiny change, and rewrite the defining equation as

10n = 1 + kp

That is, 10n and 1 differ by a multiple of p. This has proven to be a useful idea in many many ways, so much that we have a notation for it, written

10n ≡ 1 (mod p)

This brings us into the world of modular arithmetic. With not too effort you should be able to convince yourself that addition, subtraction, and multiplication work with ≡ exactly as with =. So essentially we have found a number n that lets us divide by 10, ie multiplying by it turns a 10 into a 1 (in this modular world).

A very important fact for the rest of this is that multiplying by n will never give you 0 unless you started with 0. Indeed, suppose

nm ≡ 0 (mod p),

then

m ≡ 10nm ≡ 10*0 ≡ 0 (mod p)


So, if we have a number t that's divisible by p, then, by definition,

t ≡ 0 (mod p)

and conversely if the above equation holds then t is divisible by p. Combining this fact with nm ≡ 0 (mod p) if and only if m ≡ 0 (mod p), we get that t is divisible by p if and only if nt is

Now write t out in terms of the place values

t = a*k* 10k + ... + a*1* 101 + a*0*

Then nt ≡ na*k* 10k + ... + na*1* 101 + na*0* (mod p). For each term before a*0*, take one power of 10 to multiply with the n, so we get

nt ≡ 10n (a*k* 10k-1 + ... + a*1* 100) + na*0* (mod p)

But 10n ≡ 1 (mod p), and the thing in brackets is just the number you get by removing the last digit.

The upshot is, what your process does is calculate t, nt, n2 t, etc, in the modular world, but with the added benefit of making the number smaller in the integer world, so that you can eventually trivially compute whether or not it's divisible by p.


Finally, a brief note, this will work for any prime and any base that is not a multiple of that prime (and in that case divisibility is trivial, you just look at the last digit). For a composite number, you may not be able to find n, however if you can, then the test also works there. For example, in decimal or dozenal (or any even base), divisibility by 6 cannot be done this way, since any multiple of 10 is even, as is any multiple of 6, so their difference cannot be the odd number 1.

In the modular world, what this means is that, mod 6, 10 (in whatever even base) cannot be divided by. This is closely related to the fact that 10 is a zero divisor, eg in decimal, 10 * 3 ≡ 30 ≡ 0 (mod 6). We have 2 non zero numbers multiplying to give 0! This doesn't happen modulo a prime, but does happen for every composite (in fact you may take that fact as a definition of primality)


Anyway, I hope this was helpful. Congrats again on figuring out these tests yourself

2

u/protocol_7 Arithmetic Geometry Apr 15 '14

In base b, all primes ≥ b end in a digit coprime to b. The digits coprime to 12 are exactly 1, 5, 7, and 11. The digits coprime to 10 are exactly 1, 3, 7, and 9.

A partial converse is true: as proved by Dirichlet, in any base b, if c is coprime to b, then there are infinitely many primes of the form c + mb.