Is it possible to determine if a number is a perfect square in different bases?

  • Context: Undergrad 
  • Thread starter Thread starter srijithju
  • Start date Start date
  • Tags Tags
    Bases Square
Click For Summary

Discussion Overview

The discussion revolves around the possibility of determining whether a number is a perfect square when considered in two different bases. Participants explore theoretical aspects, potential algorithms, and specific cases related to this concept.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant questions if it's possible to prove or disprove that a number is a perfect square in two bases, m and n, rather than just its representation in those bases.
  • Another participant suggests that if a sequence of digits is a square in one base, it might be possible to find that base through exhaustive testing, but they express uncertainty about proving it otherwise.
  • A participant seeks an algorithm to find a second base after identifying one base where the number is a perfect square, questioning if exhaustive testing is necessary for each base.
  • Participants discuss specific scenarios where a sequence has only one non-zero digit, noting that if the sequence has an even number of digits, it can always be a perfect square in some base, while an odd number of digits requires the non-zero digit itself to be a perfect square.
  • There is mention of sequences of digits in geometric progression and the conditions under which they might be squares in various bases, leading to further complexity in finding solutions.
  • Some participants assert that numbers like 400 and 961 are perfect squares in any base n, with conditions on the minimum base for their existence.

Areas of Agreement / Disagreement

Participants express differing views on the methods for determining perfect squares across bases, with no consensus reached on a definitive approach or algorithm. Some agree on specific examples of perfect squares, while others question the generalizability of those cases.

Contextual Notes

Participants highlight limitations in their reasoning, such as the dependence on the number of digits and the nature of the digits themselves, without resolving these complexities.

srijithju
Messages
57
Reaction score
0
Does anyone know if its possible to check whether a number is a perfect square in 2 different bases ? ( I don't mean the representation of a number in 2 different bases - coz that would be a ridiculous question , what I mean is consider a no say xyz - is it possible to prove / disprove that it is a perfect square when considered in 2 bases .. i.e. let's say bases m and n ... then the numbers would be x * m^2 + y * m + z in base m and x* n^2 + y*n + z in base n) .
 
Physics news on Phys.org
If a sequence of digits is a square in some base it should be possible to find that base by exhaustive testing. If not, I'm not sure how to prove it -- unless perhaps it's close to a perfect power, like 101_b = b^2 + 1.
 
What I am looking for is basically an algorithm ... Suppose I find one such base by exhaustive testing , now is it possible to find another base , or do I have to do exhaustive testing to find the second base too .

Or is there some way to rule out a certain sequence of digits from being a perfect square in all possible bases , or maybe is it always possible to find a base in which a sequence of digits will be a perfect square, given that the sequence of digits satisfy some relation .

All I am able to see is the following :

1. that if the sequence has only 1 non zero digit :
Here there are 2 scenarios -
1st scenario : in case that the sequence has an even no. of digits ( when we do not consider the leading zeroes before the non zero digit of course) then u can always find a base in which the number is a perfect square ..

eg. p000 , where p is any digit ( or even a letter representing a single digit in bases higher than 10)

then in a base q the no. would be :
= p * q^3
= p*q * q^2

Now if q = (p*any perfect square)
, then we can clearly see the number is a perfect square in base q , i.e we have an infinite no. of bases in which the number is a perfect square

2nd scenario : the sequence has odd no. of digits - In this case the only way for the num to be a square in any arbitrary base is if the non zero digit itself is a perfect square - this can be seen similar to above.

2. If the digits are in a Geometric progression :

If the no. is (k digits):
r(k-1) r(k) ... r0

If let us say the common ratio is r , then in a base q , the num would be :

r0 * { (r*q)^k - 1 } / {r - 1}

Now we require the num to be a square , so the above num should be a square,
If now somehow we find integer solns of q by equating the above to a square , then we can find the bases ,
If we choose a square no x^2 ,
then we have :
r0 * { (r*q)^k - 1 } / {r - 1} = x^2


well I guess this just leads us to an even bigger problem to solve ...


nyways can anyone find some relation , that may help in determining the solution ?
 
srijithju said:
Does anyone know if its possible to check whether a number is a perfect square in 2 different bases ? ( I don't mean the representation of a number in 2 different bases - coz that would be a ridiculous question , what I mean is consider a no say xyz - is it possible to prove / disprove that it is a perfect square when considered in 2 bases .. i.e. let's say bases m and n ... then the numbers would be x * m^2 + y * m + z in base m and x* n^2 + y*n + z in base n) .

400 is a perfect square in any base n
961 is also a perfect square in any base n
 
Last edited:
ramsey2879 said:
400 is a perfect square in any base n
961 is also a perfect square in any base n

400 does not exist in any base n < 5.

961 does not exist in any base n < 10.
 
srijithju said:
What I am looking for is basically an algorithm ... Suppose I find one such base by exhaustive testing , now is it possible to find another base , or do I have to do exhaustive testing to find the second base too .

Or is there some way to rule out a certain sequence of digits from being a perfect square in all possible bases , or maybe is it always possible to find a base in which a sequence of digits will be a perfect square, given that the sequence of digits satisfy some relation .

All I am able to see is the following :

1. that if the sequence has only 1 non zero digit :
Here there are 2 scenarios -
1st scenario : in case that the sequence has an even no. of digits ( when we do not consider the leading zeroes before the non zero digit of course) then u can always find a base in which the number is a perfect square ..

eg. p000 , where p is any digit ( or even a letter representing a single digit in bases higher than 10)

then in a base q the no. would be :
= p * q^3
= p*q * q^2

Now if q = (p*any perfect square)
, then we can clearly see the number is a perfect square in base q , i.e we have an infinite no. of bases in which the number is a perfect square

2nd scenario : the sequence has odd no. of digits - In this case the only way for the num to be a square in any arbitrary base is if the non zero digit itself is a perfect square - this can be seen similar to above.



anyways can anyone find some relation , that may help in determining the solution ?

You were just a hair off. p000 is a perfect square in any base [tex]p^{2n+1}[/tex] n > 0
 

Similar threads

  • · Replies 26 ·
Replies
26
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K