Ask Your Question
0

equality with integer exponents

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

Jingenbl gravatar image

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

eric_g gravatar image

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

reply: False

Why?

Big thangs

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-12-23 18:46:33 +0100

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()
0

Well, SageMath can get it with canonicalize_radical():

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

Comments

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 +0100 )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

Stats

Asked: 2019-12-23 17:22:48 +0100

Seen: 205 times

Last updated: Dec 23 '19