How Can I Solve This Unique Weight Balancing Problem Using Balanced Ternary?

  • Context: Undergrad 
  • Thread starter Thread starter ged25
  • Start date Start date
  • Tags Tags
    Sum
Click For Summary
SUMMARY

The discussion centers on solving a weight balancing problem using balanced ternary representation. Participants explore how to distribute unique weights, which are powers of 3 (1, 3, 9, 27, etc.), across two pans of a scale to achieve equilibrium. For instance, to balance a weight of 35, one pan holds 36 (35 + 1) while the other holds 36 (27 + 9). The key insight is that the values on the pans must correspond to balanced ternary digits {-1, 0, 1}, which directly relate to the solution of the problem.

PREREQUISITES
  • Understanding of balanced ternary representation
  • Familiarity with powers of 3
  • Basic knowledge of mathematical problem-solving techniques
  • Ability to write numbers in base-3 (ternary)
NEXT STEPS
  • Research the properties and applications of balanced ternary systems
  • Learn how to convert numbers between decimal and balanced ternary
  • Explore algorithms for solving weight balancing problems
  • Investigate symbolic representations of mathematical solutions
USEFUL FOR

Mathematicians, computer scientists, and hobbyists interested in number theory, algorithm design, and unique problem-solving strategies involving balanced ternary systems.

ged25
Messages
6
Reaction score
0
I have this problem where I'm having trouble solving so any help would be appreciated.

Here's the problem:
You have a balancing scale and a set of unique weights. Each weight that you have is a power of 3 ie you have weights 1,3,9,27 etc. You are given a weight w.
The problem is to tell which weight goes on which pan so that the scale is balanced.

For example:
Suppose you are given weight with value 35.

Solution:
The left pan will have 35 + 1 = 36
The right pan will have 27 + 9 = 36

Another example with weight 52.
The left pan will have 52 + 27 + 3 = 82
The right pan will have 81 + 1 = 82

I hope the problem is clear.

I haven't gotten further than understanding that value on the pans must be 3x or 3x + 1.
 
Physics news on Phys.org
Welcome to PF!

Hi ged25! Welcome to PF! :wink:
ged25 said:
I haven't gotten further than understanding that value on the pans must be 3x or 3x + 1.

yup, that's a bit obvious, and I'm afraid won't help you. :redface:

Hint: try it for the easiest cases, of weights of 1 up to 8, find a symbolic way of writing the answers, and see if you can find a pattern. :smile:
 
You know how to write numbers in base-3 (ternary), right?

There's a direct correspondence between writing numbers in *balanced* ternary and the solution to this problem. Ordinary ternary uses the digits {0, 1, 2}; balanced ternary uses {-1, 0, 1}.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
3
Views
2K
Replies
3
Views
6K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 13 ·
Replies
13
Views
2K