Prove that an integer with digits '1' is not a perfect square.

  • Thread starter Thread starter futb0l
  • Start date Start date
  • Tags Tags
    Integer Square
Click For Summary
The discussion centers on proving that any positive integer composed solely of the digit '1' (like 1, 11, 111, etc.) cannot be a perfect square. Participants explore various mathematical approaches, including modular arithmetic and properties of odd and even numbers. A key argument presented is that if such a number were a perfect square, it would lead to a contradiction when analyzing the parity of the resulting expressions. Additionally, the conversation touches on the nature of perfect squares in relation to their last digits and the implications of their residues when divided by 8. Ultimately, the consensus is that the assumption of these numbers being perfect squares leads to logical inconsistencies, reinforcing the claim that they cannot be perfect squares.
  • #31
If you work out p(mod 12) for p a prime, what are the possibilities? Excepting 2 and 3. What does this imply for p^2(mod 12)?
 
Physics news on Phys.org
  • #32
Hi all,

I think I have found another proof on futbol's problem. I'm grateful if anyone could check it:

Proof by contradiction

Suppose there exists an integer x such that x^2 = 111...11.
x must be an odd integer because an even x can't have the ending digit 1.
Let's write x in the form x=2k+1 where k is an integer number.

Thus,
x^2 = 111...11
=> (2k+1)^2 = 111...11
=> 4k^2 + 4k + 1 = 111...11
=> 4k^2 + 4k = 111...10
=> 4k^2 + 4k = 111...1 * 10
=> 4k(k+1) = 111...1 * 10
=> 2 k(k+1) = 111...1 *5
=> 2 k(k+1) = 555...5

The left hand side is an even number and the right hand side an odd number
which is a contradiction. Therefore there exists no integer x such that
x^2 = 111...11.
 
  • #33
Dick said:
If you work out p(mod 12) for p a prime, what are the possibilities? Excepting 2 and 3. What does this imply for p^2(mod 12)?

Hi Dick,

The problem stated that p is a prime number that is greater than 3. When you work out p^2(mod 12) you get a remainder of 1 for every prime number square that is greater than 3. This is not the case with 2 or 3. I was wondering if there was some proof behind this.
 
  • #34
A more advanced problem deals with when a REPUNIT is prime. This happens for 2, which is 11. Now since we can use the form \frac{10^n-1}{9}, it is clear that for n=ab, that 10^a-1 is a factor. (And if n is greater than 1, this divides out more than just the 9.) So that looking for primes we only need consider repunits of prime length 2,3,5,7...etc.

What is the next prime repunit after 11? Well, my TI-89 will handle the case for n=17 and finds it not prime with smallest factor of 2071723. Checking with Wolfram under repunits, I see that n=19 is the smallest case after n=2, which gives us a prime.

Of course, the whole matter can be generalized and examined for bases other than 10, as Wolfram indicates. A Mersenne number is the famous case of base 2.
 
Last edited:
  • #35
For mikeyflex: every prime not equal to 2 or 3 is of the form 6m+1 or 6m-1 for some integer m. This completely explains your observation.
 
  • #36
mikeyflex said:
Hi Dick,

The problem stated that p is a prime number that is greater than 3. When you work out p^2(mod 12) you get a remainder of 1 for every prime number square that is greater than 3. This is not the case with 2 or 3. I was wondering if there was some proof behind this.

A direct way to see this is that p(mod 12) can only be 1,5,7 or 11. Otherwise it is divisible by 2 or 3. But 1^2, 5^2, 7^2 and 11^2 are all equal to 1 mod 12. This is what matt was alluding to when he said all primes are equal to +1 or -1 mod 6.
 
  • #37
matt grime said:
For mikeyflex: every prime not equal to 2 or 3 is of the form 6m+1 or 6m-1 for some integer m. This completely explains your observation.

Thanks Matt,

The problem stated that when p is a prime greater than 3, to evaluate p^2 mod 12.

When you plug in prime values for p^2 mod 12 you get 1, which is an equivalence relation. Is there any significance to this problem as pertaining to a proof of sorts?

Thanks again Matt
 
  • #38
Did you actually read what I wrote and think about it for any length of time. Your observation is completely proven by what I wrote.
 
  • #39
to explain what matt's saying much farther than what needs to be done:
every prime greater than 3 can be written as 6k +1 or 6k -1 (which can be shown easily by a proof by cases).

(6k+1)^2 = 36k^2 + 12k + 1 = 12(3k^2 + k) + 1 = 1mod12
(6k - 1)^2 = 36k^2 -12k +1 = 12(3k^2 - k) + 1 = 1mod12

that's really all the "signifigance" involved in the observation
 
  • #40
matticus said:
to explain what matt's saying much farther than what needs to be done:
every prime greater than 3 can be written as 6k +1 or 6k -1 (which can be shown easily by a proof by cases).

(6k+1)^2 = 36k^2 + 12k + 1 = 12(3k^2 + k) + 1 = 1mod12
(6k - 1)^2 = 36k^2 -12k +1 = 12(3k^2 - k) + 1 = 1mod12

that's really all the "signifigance" involved in the observation


Ahh, now I get it, and that must be the reason why this proof doesn't work for prime numbers 2 and 3. Thank you for the observation. Number theory never seems light the bulb for me.
 

Similar threads

  • · Replies 23 ·
Replies
23
Views
2K
Replies
48
Views
4K
  • · Replies 33 ·
2
Replies
33
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
Replies
4
Views
3K
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 10 ·
Replies
10
Views
1K