How many 9digit numbers containing all the digits 1,2,3,4,5,6,7,8,9 are prime numbers?
Edited: 19 Nov 2011, 2:39 a.m.
An interesting challenge

11192011, 02:30 AM
How many 9digit numbers containing all the digits 1,2,3,4,5,6,7,8,9 are prime numbers? Edited: 19 Nov 2011, 2:39 a.m.
11192011, 03:50 AM
Off the top of my head... Zero.
The sum of 1..9 = 45, which is a multiple of 9. Therefore any 9
11192011, 05:04 AM
I guess app calculators are out of competition. RPL+: \<< 123456789 permutate isPrime total \>>
EDIT: he who doesn't know math, needs a calculator... Edited: 19 Nov 2011, 7:52 a.m.
11192011, 07:05 AM
Yes, what I had in mind actually was divisibility by 3. What a great way to teach the divisibility by 3 rule, which students can never seem to remember. Edited: 19 Nov 2011, 7:07 a.m.
11192011, 08:09 AM
Don, do you have an easy proof for this rule (there are two: one for 3 and one for 9 and a similar one for 11)?
11192011, 08:38 AM
You will easily get the idea if you look at the example of a, say, fourdigit number.
A number abcd can be written as 1000 a + 100 b + 10 c + dWe now want to evaluate (1000 a + 100 b + 10 c + d) mod 9Since 999, 99, 9 etc. are all integer multiples of 9, this simplifies to (a + b + c + d) mod 9In other words: in order to test whether a number can be divided by 9, simply check the sum of its digits. So if the remainder of the digit sum divided by 9 is zero, the number itself can be divided by 9 as well. This also means: if the remainder is 3 or 6, i.e. it can be divided by 3, the number itself is divisible by 3.
In other words:
Example: n = 1234515 is not divisible by 9, but the remainder (6) is. Or: 15 can be divided by 3. So 12345 is divisible by 3 as well. BTW, you can also continue with the digit sum of 15 which is 6 and judge the divisibility from this result. ;) Dieter
Edited: 19 Nov 2011, 8:43 a.m.
11192011, 09:11 AM
Search for 'divisibility' in Wikipedia Patrice
11192011, 09:53 AM
Well, I don't have a proof, just the fact that every middle school math textbook I've seen that discusses factoring and divisibility lists the test for divisibility for selected numbers. I generally teach the easy ones: 2 (even number), 3 (sum of digits divisible by 3), 5 (ends in 0 or 5), and 10 (ends in 0). There are tests for divisibility for other numbers, as Wikipedia shows, but in middle school we usually limit it to those 4.
11192011, 10:08 AM
4 is easy: the last two digits (read as a two digit number) need to be divisible by 4. There is another rule for 11: It deals with the pairwise digit sum. Example 121: The pairwise sum is 01 + 21 = 22. This is divisible by 11 and hence 121 is. The proof must be similar to what Dieter has shown.
11192011, 01:49 PM
Quote:You bet. :)
The method is based on the fact that 99, 9999, 999999 etc. are all divisible by 11 (which can be easily proven as well). The approach is basically the same as before. Here, the number consists of groups with two digits aa, bb, cc etc., so an eightdigit value can be written as aabbccdd. aabbccdd mod 11Since 99, 9999, 999999 etc. are divisible by 11, this simplifies to (aa + bb + cc + dd) mod 11q.e.d. Dieter
11192011, 02:17 PM
I'd be stunned if this problem would make the rule easier to remember. It seems like the rule is pretty easy to remember as is. Actually, it seems like an easier rule to help remember this (as well as the times tables for 9) is that 9 times any single digit number results in a number whose digits not only add to a multiple of 9, but 9 itself. 
« Next Oldest  Next Newest »
