Frugal selection of weights to weigh a thing
You are given a balance (that is, a weighing machine with two trays) and a positive integer N. You are then to request a number of weights. You pick which denominations of weights you want and how many of each you want. After you receive the weights you requested, you are given a thing whose weight is an integer between 1 and N, inclusive. Using the balance and the weights you requested, you must now determine the exact weight of the thing.
As a function of N, how few weights can you get by requesting?
Finding Highest value of x such that 3^x is less than n.
Then,
We will take every value fro 0 to x and we will get our values we have to put in 3^x to get our weights. After adding every weight if n is still greater then I will request one more weight that will be 3^(x+1).
Your Answer
More puzzles to try-
Identify Me Riddle
Identify Me Hint1: I am a god Hint 2: I am a planet Hint 3: measurer of heatRead More »Complex Maths Puzzle
There is one four-digit whole number n, such that the last four digits of n2 are the original number nRead More »Complete the easy sequence
Can you complete the sequence puzzle? AR TA GE CA LE VI LI _Read More »Woman in Sweet Shop Riddle
A woman who works in a sweet shop has a measurement of 32-26-36, is 5″4″ tall, and wears size “6” ...Read More »GREAT STRATEGY CAN ONLY SAVE LIFE
Three cannibals and three anthropologists have to cross a river. The boat they have is only big enough for two ...Read More »River Crossing
There is a river to cross using a river raft and there are eight people (father, mother, policeman, thief, 2 ...Read More »Typewritter Riddle
Customer services at Puzzlefry headquarters received the following letter yesterday. Our top puzzle solvers were able to determine the meaning ...Read More »Not a suicide
A man was found dead next to a 11 story building. The police say it was a suicide, but you ...Read More »No flesh and nor feather
They have not flesh, nor feathers, nor scales, nor bone. Yet they have fingers and thumbs of their own. What ...Read More »Truck under overpass
John was driving his truck under an overpass when suddenly he came to a screeching halt. John wasn’t paying enough ...Read More »Balloon in car riddle
There is a car with a flat roof, on a plain level road. There is a helium balloon in the ...Read More »Hidden words in raining picture puzzle
Find hidden words in the imageRead More »Time measurement
There are two sand timers which can show 7 minutes and 4 minutes respectively. Measure time of 9 minutes using ...Read More »The next number In The Series Puzzle
Find the next number in the following series: 6, 14, 26, 98, __?Read More »Einstein’s five-houses riddle
In a street there are five houses, painted five different colours. In each house lives a person of different nationality. ...Read More »Add 4 matchsticks to divide the square
Can you add 4 matchsticks to divide the square into 2 equal pieces-Read More »3 Question and 1 answer Riddle
One Mother and Daughter went to a market. .. The Shopkeeper asked the girl 3 questions. .. 1. WHAT DID ...Read More »Which one weigh more?
Does an ounce of gold or an ounce of feathers weight moreRead More »Country Name Riddle
Apart from the United States of America, which other country in the world is officially named “United States”?Read More »Complete The Series
N U S J M E V ?Read More »