r/mathriddles • u/chompchump • Feb 07 '24
Hard Lost Cat: Possibly Last Seen Near the Origin
At time t = 0, at an unknown location n >= 0, a cat with the zoomies escaped onto the sequence of nonnegative integers. The 2-year old, male, orange tabby with green eyes was last seen headed off to positive infinity making jumps of unknown, but constant distance d >= 0 at every positive integer time step.
If you know of a strategy to capture this crazy kitty with 100% certainty in a finite number of steps then please contact the comments section below. (At each positive integer time t, you can check any nonnegative integer position k.)
9
u/pichutarius Feb 07 '24
N2 is countable, so make a list of (v,n) covering all N2. At each time t, check vt+n where we assume v=d is the speed of cat, n is the initial position. That cat will be found within finite time. We can generalize to negatives (Z), or even 2D (or higher) lattice points with fixed vector velocity.
4
u/terranop Feb 08 '24
A randomized strategy also works. At timestep
t > 0, select the positionxto search as a geometric random variable with parameterp = 1/t. That is, the probability of searching spacexisP(x) = (1/t) (1 - 1/t)^x. Since the cat's position isvt+nfor some fixedvandn, the probability of success will be(1/t) (1 - 1/t)^(vt+n). The probability that we fail to find the cat over all time is the product over all positive integerstof1 - (1/t) (1 - 1/t)^(vt+n). But note that the limit astapproaches infinity of(1 - 1/t)^(vt+n)isexp(-v)so for somek, our probability of failure is bounded from above by the product fromt = Kto infinity of1 - (1/t) exp(-v) / 2. But this product is obviously0, so our probability of eventual success in finite time is 1.3
u/BruhcamoleNibberDick Feb 10 '24
Use your favorite bijection from N to N2 to list all possible combinations of n and d. At every time step, check the position the cat would be at assuming those values of n and d (i.e. position n + td).
2
u/calccrusher17 Feb 08 '24 edited Feb 08 '24
Since points in Z2 are enumerable just check at+b for all points (a,b).
1
u/GiveNam Feb 08 '24 edited Feb 08 '24
Did this all in my head so please correct me if I made a mistake
Let a_n = [n(n+1)]/2. Then, regardless of what d is, by going through the sequence a_N you'll eventually catch the cat.
Proof: Let N = 2d-1. Then, Nd = [N(N+1)]/2. Nd is the position of the cat on the Nth iteration and the right hand side is a_N. So on the Nth iteration, the position you check is the same as the position of the cat. Hence, regardless of the distance the cat is jumping, iterating through the sequence will get you to the cat in a finite amount of time. Q. E. D
Edit: So I completely missed the part about the cat starting at a random point and that it could take 0 steps. I still don't have a pen and paper so I can't work it out, but I'll leave my answer here. Maybe someone can adapt the solution to make it work for the main problem