Ask Your Question

equality with integer exponents

asked 2019-12-23 10:22:48 -0600

Jingenbl gravatar image

updated 2019-12-23 11:47:54 -0600

eric_g gravatar image

n = var("n",domain = ZZ) assume(n>0) bool(3^(2*n) == (3^2)^n )

reply: False


Big thangs

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-12-23 11:46:33 -0600

eric_g gravatar image

When asked for a Boolean expression, SageMath returns False if it is not capable to evaluate the expression to either true or false (a real false). This is what is happening in the present case; SageMath does not detect the identity:

sage: (3^(2*n) - (3^2)^n).simplify_full()
-9^n + 3^(2*n)

SymPy is more clever:

sage: (3^(2*n) - (3^2)^n)._sympy_().simplify()

Well, SageMath can get it with canonicalize_radical():

sage: (3^(2*n) - (3^2)^n).canonicalize_radical()
edit flag offensive delete link more


Indeed. But here I know the answer; in general, it will be necessary to show a lot of experience in the manipulation of symbolic expressions before concluding.

Jingenbl gravatar imageJingenbl ( 2019-12-24 03:09:41 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-12-23 10:22:48 -0600

Seen: 40 times

Last updated: Dec 23 '19