Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two equations, which may play an important role in my further studies on theory of numbers.

1) How many pairs of (A, B, x) we can make in $A^x + B ^x = prime$? Here $x$ is $> 2$ and A, B are positive integers.

2) can we find a number(s) with one hundred 0′s, one hundred 1′s and one hundred 2′s be a perfect square. If yes, what is that number or otherwise how to disprove it about such number does not existence?


share|cite|improve this question
clearly we must have $x=2^n$ or else the sum will be divisible by $A+B$ – Konstantinos Gaitanas Dec 8 '13 at 13:12
clearly not. $2^2+3^2=14$ which is not divisible by 5 – Thomas Dec 8 '13 at 13:17
@KonstantinosGaitanas and @Thomas! $1^4 + 2^4 = 17$. Here $x = 4 >2$ and A = 1, B = 2 are positive integers. The result 17 is prime. Like this how many A, B and x are existing? can you list? – narosanair Dec 8 '13 at 13:20
@Thomas clearly yes.$x>2$ – Konstantinos Gaitanas Dec 8 '13 at 13:21
Thank you for understanding me. can you list such pairs please... also look my second question of this post. – narosanair Dec 8 '13 at 13:25
up vote 1 down vote accepted

For the second question the answer is no.
The number you want is $222\cdots 111\cdots 000\cdots$ which is divisible by $3$ (because the sum of its digits is $2\cdot 100+1\cdot 100+0\cdot 100=300$ divisible by $3$)
But,it is not divisible by $9$ (because also the sum of its digits is not)
There for it must not be a square.

share|cite|improve this answer
! Sir, in my first question, you told that, x must be $2^n$ or else the sume will be divisible by $A + B$. Can you prove your argument mathematically? Please.. – narosanair Dec 8 '13 at 14:45
If $x$ is not a power of $2$ it must have an odd factor say $d$. Then $x=k\cdot d$Then $A^x+B^x=(A^k)^d+(B^k)^d=(A^k+B^k)((A^k)^{d-1}-(A^k)^{d-2}\cdot B+\cdots +(B^k)^{d-1})$ which is a multiple of $A^k+B^k$.Don't you know the identity $a^n+b^n$ for odd $n$? – Konstantinos Gaitanas Dec 8 '13 at 15:00
Note that although first he did not specify the order of the digits, this still works nicely :) – chubakueno Dec 8 '13 at 18:38
@chubakueno I did not observe this,very sharp observation. – Konstantinos Gaitanas Dec 8 '13 at 20:00
@Konstantioons Gaitanas! This is very good observation. Thanks a lot. – narosanair Dec 9 '13 at 3:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.