Number Theory Help: Solving Problems & Understanding Repunits

Click For Summary
SUMMARY

This discussion focuses on solving number theory problems related to repunits and modular arithmetic. The first problem involves finding the last digit of 7 raised to the power of 999999, which can be approached using modular arithmetic: specifically, calculating 7^999999 mod 10. The second problem demonstrates that any positive integer that is relatively prime to 10 divides infinitely many repunits, defined as numbers consisting solely of the digit '1'. Key insights include the properties of repunits and their divisibility by integers that share no common factors with 10.

PREREQUISITES
  • Understanding of modular arithmetic, specifically calculating powers modulo a number.
  • Familiarity with the concept of repunits and their mathematical properties.
  • Knowledge of number theory concepts such as relative primality and divisibility.
  • Basic understanding of prime numbers and their properties in modular systems.
NEXT STEPS
  • Learn about modular exponentiation techniques to efficiently compute large powers modulo a number.
  • Study the properties of repunits and their applications in number theory.
  • Explore proofs related to divisibility and relative primality in number theory.
  • Investigate the structure of groups in modular arithmetic, particularly focusing on elements under multiplication modulo a prime.
USEFUL FOR

Mathematicians, students of number theory, and anyone interested in advanced mathematical concepts related to modular arithmetic and repunits will benefit from this discussion.

buzzmath
Messages
108
Reaction score
0
Could someone please give me some advice on solving these problems

1. find the last digit of the decimal expansion 7^999999?
I think i have to do something like 7^999999(mod10) but I'm not really sure if that's right or how i would do that

2. Show that every positive integer relatively prime to 10 divides infinitely many repunits? I don't know what a repunit is or how i would even begin this problem.

Thanks
 
Physics news on Phys.org
HINT #1: Powers of 7 can only end in one of the digits 7, 9, 3 or 1.
 
Thanks i think i figured the first one out
 
a repunit, according to my quick google search, is a number with all ones in every place. 11. 111. 1111111111 etc. The general formula for them is (10^x-1)(10-1) if you use a different number than 10 you're switching what base you're working in, but I'm assuming this is all in base 10. They have interesting properties, like if you square them you get those numbers that go like 1234321 or whatever, which is neat. Yay for learning

...so relatively prime means the two numbers share no common positive factors except 1, so in the case of 10 and other numbers, you get 1, 3, 7, 9, 11, etc.(I think, I looked up relatively prime as well)I can't help you with the proof, but I can see by random example it's true. 11 divides 11, 1111, 111111, and so on(add two ones each time, and the answer is actually like 101010101...another neat property, this is neat, I should take a number theory class)it gets weird though, for like 13 you add on an additional 6 1s(or whatever, I'm just messing with it on my calc)
 
Last edited:
thanks for your help. I think i might have the proof but I'm not sure does this look right?

If (a,10)=1 and (a,9)=1 then a|(10^n-1)/9 and if (a,9)=d>1 then d divides every repunit of length k9 and (a/d)|(10^(kΦ(a/d))-1)/9 and this repeats infinetly
 
I don't see where you're getting the first part:

If (a,10)=1 and (a,9)=1 then a|(10^n-1)/9

You haven't justified it. And what's n? The above fails for a = 7, n = 2. Anyways, what you've written doesn't look like a proof to me.

Consider the case a = 1. a divides infinitely many repunits, so we're done this case. From here on, a > 1.

Suppose p is a prime that is neither 2 nor 5. What can you say about 10 as an element of the group of elements {1, ..., p-1} under multiplication modulo p? What is the sum

(1 + (p-1)) + (2 + (p-2)) + ... + (p/2 - 1/2 + (p/2 + 1/2))

congruent to (modulo p)? Putting these together and filling in the details, what can you say about the existence of a repunit r such that p | r (again, where p is a prime that is neither 2 nor 5)?

Try to figure out that if x is any number that divides a repunit, then it divides infinitely many. (Once you prove this, it will be useful in two separate places, one where x = p, and second, where x = a). Prove that if a does not divide a repunit, then (a,10) cannot be 1, otherwise we'd get that

for all prime p, there exists a repunit r such that (a,r) = 1 but (r,p) = p
(it's easy to find an r such that (a,r) = 1, but to find an r such that, in addition, (r,p) = p, you need to use the fact you proved, where x = p)

implying

for all prime p, (a,p) = 1

which is impossible because a > 1.

Deduce that if (a,10) = 1, then a divides a repunit. Using x = a and the fact you proved, conclude that a divides infinitely many repunits.
 
Last edited:

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
32
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
18
Views
2K
  • · Replies 3 ·
Replies
3
Views
916
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K