What Repunits are Divisible by Factors of b+1 and b-1?

In summary, a base b repunit is an integer with base b expansion containing all 1's. To determine which base b repunits are divisible by factors b-1, the number of digits must be a multiple of d, where d divides b-1. To determine which base b repunits are divisible by factors b+1, the alternating sum must come out to a multiple of d, where d divides b+1. When b=1, the sum of the coefficients must be 0 to obtain a zero remainder. When b=-1, the conditions for a zero remainder differ depending on whether n is even or odd.
  • #1
pupeye11
100
0

Homework Statement



A base b repunit is an integer with base b expansion containing all 1's.

a) Determine which base b repunits are divisible by factors b-1

b) Determine which base b repunits are divisible by factors b+1

Homework Equations



[tex]R_{n}=\frac{b^{n}-1}{b-1}[/tex]

The Attempt at a Solution



So a repunit of base 3 would be n=2 since we get 1. I don't get how to find any beyond this point though. I tried using other n numbers but I didn't get any others that come out to all 1's.
 
Physics news on Phys.org
  • #2
pupeye11 said:

Homework Statement



A base b repunit is an integer with base b expansion containing all 1's.

a) Determine which base b repunits are divisible by factors b-1

b) Determine which base b repunits are divisible by factors b+1

Homework Equations



[tex]R_{n}=\frac{b^{n}-1}{b-1}[/tex]

The Attempt at a Solution



So a repunit of base 3 would be n=2 since we get 1. I don't get how to find any beyond this point though. I tried using other n numbers but I didn't get any others that come out to all 1's.

So if the repunit is divisible by (b+1) then [itex]b^{n}-1[/itex] is divisible by [itex]b^2-1[/itex].

Similarly if the repunit is divisible by (b-1) then [itex]b^{n}-1[/itex] is divisible by [itex](b-1)^2[/itex].

Try applying the concepts of the remainder theorem to each of the above.
 
  • #3
We haven't covered the remainder theorem yet...
 
  • #4
pupeye11 said:
We haven't covered the remainder theorem yet...

Ok, well imagine that you divided [itex]b^n-1[/itex] by [itex](b-1)(b+1)[/itex]. Then if "Q" was the quotient and "R" the remainder of this division we could write :

[tex] b^n-1 = (b-1) (b+1)\,Q+ \alpha b + \beta[/tex]

Where [itex]R(b) = \alpha b + \beta[/itex] is the remainder.

Try substituting first b=1 and then b=-1 into the above equation and see what conditions are required to make R=0.
 
Last edited:
  • #5
Well for b=1 then [tex]\alpha[/tex] will be positive so [tex]\beta[/tex] will have to be the negative of [tex]\alpha[/tex]

The opposite is true for b=-1, [tex]\alpha[/tex] will be negative and [tex]\beta[/tex] is going to be the positive of that number...
 
  • #6
I figured out that for a its if and only if the number of digits is a multiple of d, where d divides b-1.

For b, would it just be if and only if the alternating sum comes out to a multiple of d, where d divides b+1?
 
  • #7
pupeye11 said:
Well for b=1 then [tex]\alpha[/tex] will be positive so [tex]\beta[/tex] will have to be the negative of [tex]\alpha[/tex]
Yeah do part "b)" first, it's the easiest.

Yes that first part is correct, when b=1 we must have [itex]\alpha + \beta = 0[/itex] to get zero remainder.

The opposite is true for b=-1, [tex]\alpha[/tex] will be negative and [tex]\beta[/tex] is going to be the positive of that number...

No not quite. For b=-1 you should consider the case of even n and odd n separately. Do that and it will be very easy so find the conditions required for zero remainder.
 

1. What is a repunit in number theory?

A repunit is a positive integer whose digits are all 1. It is written in base 10 as (10n - 1)/9, where n is the number of digits. For example, the number 111 is a repunit with 3 digits.

2. How are repunits related to prime numbers?

Repunits are closely related to prime numbers, as they can only be prime if the number of digits is a prime number. In other words, a repunit with n digits is prime if and only if n is a prime number.

3. Can all primes be expressed as repunits?

No, not all primes can be expressed as repunits. For example, the prime number 73 cannot be written as a repunit because it has an even number of digits (2) and repunits can only have an odd number of digits.

4. What is the significance of Mersenne primes in relation to repunits?

Mersenne primes are a special type of prime number that can be expressed as 2n - 1, where n is also a prime number. This means that all Mersenne primes can be written as repunits in base 2. However, not all repunits in base 2 are Mersenne primes.

5. Are there any other interesting properties or applications of repunits?

Yes, repunits have many interesting properties and applications in number theory. For example, they can be used to construct perfect numbers, which are numbers that are equal to the sum of their proper divisors. Repunits also have connections to geometric constructions and have been studied in the field of recreational mathematics.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
802
  • Calculus and Beyond Homework Help
Replies
1
Views
495
  • Calculus and Beyond Homework Help
Replies
3
Views
540
  • Calculus and Beyond Homework Help
Replies
3
Views
727
  • Calculus and Beyond Homework Help
Replies
2
Views
452
  • Calculus and Beyond Homework Help
Replies
5
Views
2K
  • Calculus and Beyond Homework Help
Replies
14
Views
582
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
32
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
Back
Top