Dizzying!
Starting at (0,0) in the xy-coordinate INTEGER grid, you take n steps, each step being a one-unit left move, right move, up move, or down move. The following are examples of n-step trajectories, where n=12:
(T1) ((0,0), (1,0), (2,0), (3,0), (3,-1), (4,-1), (4,-2), (5,-2), (5,-1), (5,0), (5,1), (5,2), (4,2))
(T2) ((0,0), (1,0), (2,0), (3,0), (3,-1), (4,-1), (4,-2), (5,-2), (5,-1), (5,0), (4,0), (3,0), (3,1))
(T3) ((0,0), (1,0), (2,0), (3,0), (3,-1), (4,-1), (4,-2), (5,-2), (4,-2), (4,-1), (4,0), (3,0), (3,1))
(T4) ((0,0), (0,-1), (0,-2), (0,-3), (0,-4) (0,-5), (-1,-5), (-2,-5), (-2,-4), (-2,-3), (-2,-2), (-2,-1), (-2,0)).
Comments:
Trajectories T2 and T3 are self-intersecting, whereas T1 and T4 are not. Trajectory T2 self-intersects at (3,0), for example.
Questions:
Q1. Find the number of all n-step trajectories starting at (0,0).
Q2. Find the number of all n-step trajectories starting at (0,0) that are not self-intersecting.
Q3. Find the number of all n-step trajectories that are confined to the first quadrant. A trajectory is confined to the first quadrant if for every point (x,y) of the trajectory we have x>=0, y>=0.
Q4. Find the number of all n-step trajectories that do not contain points of a certain set S. For example, find the number of all 20-step trajectories that do not contain the points of S={(2,5), (-2,-4), (7,7)}.
Q5. Find the number of all n-step trajectories that do not self-intersect at the points of a certain set S. For example, find the number of all 20-step trajectories that do not self-intersect at the points of S={(2,5), (-2,-4), (7,7)}.
Q6. Find the number of n-step trajectories that self-intersect exactly once.
Q7. Find the number of n-step trajectories that self-intersect exactly twice.
Q8. Find the number of all n-step trajectories that do self-intersect at the points of a certain set S. For example, find the number of all 20-step trajectories that do self-intersect at the points of S={(2,5), (-2,-4), (7,7)}.
Q9. Find the number of all n-step trajectories whose number of up steps equals the number of left steps.
Q10. Find the number of all n-step trajectories whose number of up steps is twice the number of left steps.
Q11. Find the number of all n-step trajectories that terminate in a given set S. For example, find the number of all 20-step trajectories that terminate in the set S={(2,5), (-2,-4), (7,7)}.