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

14 Solutions

11 Solvers

Last Solution submitted on Jun 06, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers11

Suggested Problems

More from this Author325

Community Treasure Hunt

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

Start Hunting!