This challenge is to produce a function ''y'' = f(''x'') with the following characteristics (and to prove that it has them): 1. It must be '''single-valued''' for all real ''x'' at which it is defined. 1. It should be definable in finite space with formulae and/or words (in case anyone has any clever meta-functions in mind). 1. There exists at least one point in its graph (on the standard Cartesian ''x''-''y'' plane) within every possible circle of positive radius whose center's ''y''-coordinate is on the interval [0,1). (That's 0 included, 1 excluded.) * Such properties as differentiability, integrability, continuity, periodicity, or everywhere-definedness are not required. * Give answers below the triple horizontal rule below. (Please give names so we can keep up with you.) Responses will be posted alongside. * Extra points if (in Characteristic #3) one can broaden the interval for ''y'' (even to (-''inf'',''inf'') if you can). * Hints and clarifications will be posted below as comments or submissions suggest. * I do have a solution (although I make on it no claims of superiority); provide an email address in a comment and I will probably provide (particularly if you've commented and/or submitted before!). * This MathQuiz the fault of DavisHerring. ---- '''Clarifications''': For every such circle that can be specified (''X'',''Y'',''R''), you must be able to show that there exists a point (''x'',''y'') such that the distance from (''X'',''Y'') to (''x'',''y'') is less than ''R'' and ''f(x)''=''y''. ---- '''Those who have solved the puzzle:''' VickiKerr ---- '''Comments:''' Hey... you expressly prohibit functions not "definable in finite space with formulae and/or words" in order to prohibit clever "meta-function" tricks. I'm interested! What are these "meta-function" things which are so difficult to define, and where would I find a source where I could read up more on them? -- MichaelChermside ''I didn't have something particular in mind; any description that one would terminate with 'and so on' is the closest I can think of. "This function is periodic with period 1, and is defined at a random value at 1, and a different random value at 1/2, and different random values at 1/4 and 3/4, and more random values at the intervening eighths, '''and so on'''." I wanted a function which fulfilled the criteria by a non-trivial mechanism. '''Anyone with ideas and/or resources want to start a MetaFunction page?''''' -- DavisHerring ---- '''''Below here lie what may be spoilers! Proceed with caution.''''' ---- ---- '''Hints:''' None so far. ---- ---- ---- '''Submissions:''' sin(1/x) for x non zero. 0 for x zero (1/x)sin(1/x) to go close to the whole y axis ''These functions don't pass through the circle centered at (1/pi,.9) with radius .01, since they're close to 0 there. And '''please put names to your submissions'''!'' -- DavisHerring [What? Why does it have to pass through that circle? It is not centered somewhere on the y axis as you requested. Do I not understand the puzzle? It seems to me like these functions solve the problem (in original and "bonus" form, respectively. ''Oh, okay, it is a little misleading''. You mean that the center of the circle is in {(x,y) | y is in [0,1)}. There are ''no'' restrictions on the x value of the circle. It sounded a little like you wanted the center of the circle to be in {(0,y} | y is in [0,1)}.] [''Did it? The original description gives "whose center's ''y''-coordinate is on the interval [0,1)". No mention is made of the x-coordinate, so it is purely your own imagination which led you astray.'' -- vk] [My, aren't you sour, vk. Yes, it ''did'' sound a little like what I said, and apparently not just to me. Whenever a person is misled, it is a combination of what they are reading and their process of reading it. If it was "purely one's imagination", it would be something more like a total hallucination. If one reads Davis's requirements carefully, one will not get the wrong idea, so getting the wrong idea, if ''blame'' is to be apportioned, as you seem to want to do, would indeed be the fault of the reader. But I think it is easy to get the wrong idea, and as an example, the person who offered the above solution obviously did, since his answer solves the problem as I first read it. Anyway, the first comment should never have been added -- let's delete it, and what it generated.] Wait a minute, it said all possible circles, which certainly '''includes''' {(0, y} | y is in [0,1)} as a subset. -- DougMerritt ---- Let's try f(m/2^n) defined as p/q if and only if the following all hold: 1. p, q are positive coprime integers such that p/q is a proper fraction 2. m and p are odd integers 3. n = p * 2^q I haven't checked this carefully, but hopefully it works. If q is a large enough prime, p and m can be chosen so that the point (m/2^n, p/q) is close to the point (''X'', ''Y''). -- VickiKerr ''I thought about it a while, and it seems to check out. What's more, it's easily extended to the rest of the plane, and is more elegant than my solution (although I would argue that mine is more straightforward). Bravo.'' -- DavisHerring ---- I can't quite prove this will work, but my idea is: f(m + p/q) = (p * 10^-n) * 10/9 - 1/9 iff 1. m is integer 2. p and q are positive coprime integers where p/q is a proper fraction 3. n is the number of digits in p, which assures that (10^-n * p) is in the range [.1, 1) Then consider a point X,Y (Y on [0, 1) ) and show we can get arbitrarily close to it. Consider the series y1, y2, y3... of integers constructed from Y such that yi is the integer part of y*10^i; and the series x1, x2, x3... of integers such that xi minimizes the value of (fractional part of X) - yi/xi. By using values (p,q) = (yi, xi), it should be possible to show that a large enough i lets us get arbitrarily close to X,Y. Getting close in the Y direction is obvious from the construction; proving we can *simultaneously* get close in the X direction (in such a way that the total distance is always asymptotic to zero and not some positive value) is the tricky part. -- KarlKnechtel ''(I assume that by "xi minimizes the value of (fractional part of X) - yi/xi" you mean that xi minimizes the absolute value of that expression.)'' ''First you have p and q as coprime positive integers with p |x1-x2| 0. 2 Pick y1 in [Y, Y+r) s.t. y1 is a terminating decimal, such as taking Y+r and truncating after enough decimal points, always possible since r>0. 3 Define dx = reverse sequence of digits of y1, with 0. and [10 + # of 0's before r's first digit] 0's prepended, so we have dx < r. 4 Pick x1 = X + dx, therefore x1 is in [X, X + r] 5 f(x1) = y1 + dy by construction of (2), dy < r by construction of (3), therefore f(x1) is in [Y, Y + r], so the point (x1, f(x1)) is within the circle (X,Y,R) by construction in (1). -- OliverChung ---- CategoryMath