The article explores the application of binary and ternary number systems to three classical mathematical puzzles-weight problem of Bachet de Méziriac, binary numbers magic trick, and the detection of a counterfeit coin. The article further elucidates the generalization of these puzzles using the balanced number system.