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

12 Solutions

9 Solvers

Last Solution submitted on Mar 03, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers9

Suggested Problems

More from this Author321

Community Treasure Hunt

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

Start Hunting!