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

  • Thread starter Thread starter srijithju
  • Start date Start date
  • Tags Tags
    Bases Square
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 p^{2n+1} n > 0
 
##\textbf{Exercise 10}:## I came across the following solution online: Questions: 1. When the author states in "that ring (not sure if he is referring to ##R## or ##R/\mathfrak{p}##, but I am guessing the later) ##x_n x_{n+1}=0## for all odd $n$ and ##x_{n+1}## is invertible, so that ##x_n=0##" 2. How does ##x_nx_{n+1}=0## implies that ##x_{n+1}## is invertible and ##x_n=0##. I mean if the quotient ring ##R/\mathfrak{p}## is an integral domain, and ##x_{n+1}## is invertible then...
The following are taken from the two sources, 1) from this online page and the book An Introduction to Module Theory by: Ibrahim Assem, Flavio U. Coelho. In the Abelian Categories chapter in the module theory text on page 157, right after presenting IV.2.21 Definition, the authors states "Image and coimage may or may not exist, but if they do, then they are unique up to isomorphism (because so are kernels and cokernels). Also in the reference url page above, the authors present two...
When decomposing a representation ##\rho## of a finite group ##G## into irreducible representations, we can find the number of times the representation contains a particular irrep ##\rho_0## through the character inner product $$ \langle \chi, \chi_0\rangle = \frac{1}{|G|} \sum_{g\in G} \chi(g) \chi_0(g)^*$$ where ##\chi## and ##\chi_0## are the characters of ##\rho## and ##\rho_0##, respectively. Since all group elements in the same conjugacy class have the same characters, this may be...
Back
Top