Problem 61011. Compute the tersum

The tersum, which appears in certain mathematical games, involves adding two numbers in base 3 without carry and converting back to base 10. For example, the tersum of 5 and 8 would involve adding their base-3 representations 12 and 22 without carry to get 01 in base 3 or 1 in base 10.
Write a function to compute the tersum of two integers.

Solution Stats

100.0% Correct | 0.0% Incorrect
Last Solution submitted on Oct 04, 2025

Solution Comments

Show comments

Problem Recent Solvers2

Suggested Problems

More from this Author312

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!