Ask Your Question

equality with integer exponents

asked 2019-12-23 17:22:48 +0200

Jingenbl gravatar image

updated 2019-12-23 18:47:54 +0200

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 18:46:33 +0200

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 10:09:41 +0200 )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 17:22:48 +0200

Seen: 127 times

Last updated: Dec 23 '19