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 ?