Categories: SCIENCE

Math Puzzle: Secret formula | Scientific American


First query with x = 1. This will give you the sum of the coefficients, which we’ll call S. Because S is the sum of nonnegative coefficients, we know that no single coefficient exceeds S. For the second query, set x to the smallest power of 10 that is greater than S. That is, if S is a one-digit number, then the second query will be x = 10; if S is a two-digit number, then the second query will be x = 100; if S is a three-digit number, then x = 1,000, and so forth.

For example, imagine my formula is 2x5 + x3 + 3x2 + 2. When x = 1, this yields S = 8. This comes from 2 + 0 + 1 + 3 + 0 + 2 = 8, where the zeroes represent missing exponents—there’s no x4 term or x term, so the corresponding coefficients are 0. Now if we query with x = 10, the result is 201,302, coming from 200,000 + 0 + 1,000 + 300 + 0 + 2. This result just lists the six coefficients in order, so it completely reveals the formula.

Setting x = 10 can result in ambiguity if any of the coefficients are 10 or greater, however. For example, if S = 27, then the second query would be x = 100, and the result will list the coefficients in order again, only this time each coefficient will be represented by two digits of the result instead of one. For example, plugging in x = 100 to 21x5 + x3 + 3x2 + 2 gives 210001030002.

A slick alternative solution is to make the second query x = S + 1 and then write the result in base S + 1. Figuring out why this works is a bonus exercise.

Curiously, if your queries can be any number, then you can, in principle, fully determine the formula with a single query: x = π. Proving this requires more advanced math. The number π is transcendental, which, among other things, implies that if you plug it into a polynomial with whole number coefficients, it will always give a unique output. There is no ambiguity like there is for many other numbers.

The result of setting x = π also bounds the size of the coefficients and the size of the exponents in the formula. For example, if you query x = π and the result is 54.44225…, then you know that all coefficients are between 0 and 55 (otherwise the result would have been larger), and you know that the formula cannot have any exponent greater than 3 because, if it did, then it would, at minimum, contain a π4 term, which equals 97.40909…. From one query, you learn that the polynomial’s coefficients sit between 0 and 55, and its exponents sit between 0 and 3. This narrows the answer to a large yet finite list of possibilities. You could in principle check each one and find which one yields 54.44225… to determine my formula.



Source link

Mainedigitalnews.com

Share
Published by
Mainedigitalnews.com

Recent Posts

Pope Leo in ‘pretty good health’ as he starts Latin America tour

Pope Leo XIV has told reporters travelling with him to Latin America he is "in…

9 minutes ago

CORRECTION: Vertical Data Closes $4.24 Million Private Placement of Common Stock

This release corrects and updates references to advisory companies and their role in the private…

10 minutes ago

7 ways to breathe new life into a listing that isn’t selling

Don’t jump straight to a price cut when you have a listing not selling. These…

11 minutes ago

Boston Blue Season 2, Episode 5: Jamie Reagan Returns — Will Estes Interview Video

TVLINE | How long had Jamie's appearance on "Boston Blue" been in the works? Was…

44 minutes ago

Sequoia shutting down its Scouts program marks the end of an era

Sequoia this week announced a broad overhaul in a memo posted to X, a move…

47 minutes ago

Building a Better Future Takes All of Us

By Nia Umoja. Co-founder and creative director of Cooperative Community of New West Jackson Nia…

3 days ago