Sharedsage_worksheets / ternary_interact.sagewsOpen in CoCalc
Author: Ken Levasseur
Description: Worksheets related to Applied Discrete Structures
%html <h1> The Ternary Number System </h1> <h3> Ken Levasseur, Mathematical Sciences, UMass Lowell<br> <a href="http://discretemath.org">discretemath.org</a> </h3> <p> Every integer is the sum of distinct signed powers of three. This SageMath interact demonstrates this fact for positive integers from 1 to 1000. </p>

The Ternary Number System

Ken Levasseur, Mathematical Sciences, UMass Lowell
discretemath.org

Every integer is the sum of distinct signed powers of three. This SageMath interact demonstrates this fact for positive integers from 1 to 1000.

%load ternary.sage @interact def _(n=slider(1,1000, step_size=1,default=375)): visual_tern(n)