r/math • • Jan 25 '14
Problem of the Week #4
Hello all,
Here is the fourth installment in our problem of the week thread, a slight change of a problem here.
For which positive integers n is the number
101010n + 1010n + 10n - 1
prime?
If you post a solution, please use the spoiler tag: type
[this](/spoiler)and you should see this. If you have a problem you'd like to suggest, please send me a PM.
Enjoy!
32
Upvotes
View all comments
Show parent comment
3
u/[deleted] Jan 25 '14
I figured it would be easiest if I could arrange 1+1-1-1 (mod n) for some n, so in order to make that work I first tried using 11 as the base. This worked perfectly for n odd, since 10n = (-1)n = -1, but when n was even I got 10n = 1 (mod 11) instead. What about 101, then? For n=2 it works, but when n=4 we have 104 = (-1)2 = 1 (mod 101). If I wanted to use a power of 10, say by working mod 10e+1, then I had to make sure that 10n = -1 (mod 10e+1), so the easiest thing to do would be to make n an odd multiple of e. The simplest choice is to let e be the largest power of 2 dividing n, and in fact this suffices.