Let D={0,1,…,9}. A direction function for D is a function f:D×D→{0,1}.
A real r∈[0,1] is compatible with f if it can be written in the form r=j=1∑∞10jdj with dj∈D and f(dj,dj+1)=1 for every positive integer j.Determine the least integer k such that for any direction fuction f, if there are k compatible reals with f then there are infinite reals compatible with f. CIIMCIIM 2012undergraduatefunction