Consider an infinitely large plane which exerts gravity onto a point mass with mass $m$ and located at height $h_0$. The point mass moves perpendicularly through the plane without undergoing any friction.
It can be easily derived that the force exerted by the plane is a constant and thus independent of the height at which the point mass is located. I am going to take for granted the result of the calculation, which is $|\vec{F}| = 2Gm\pi\sigma$.
Then it is an obvious conclusion that the $a-h$ graph will look as follows:
Now to specify the problem I will provide the initial conditions: at $t = 0$ $h=-h_0 \ (h_0 > 0)$ and $v = 0$.
I want to find the relationship between $h$ and $t$, i.e. draw the graph of $h(t)$.
What I thought was that initially, while the object is at $-h_0 \leq h < 0$, $$\frac{1}{2}gt^2=0-(-h_0) \Rightarrow t = \sqrt{\frac{2h_0}{g}}$$
and when the object becomes located at $0 \leq h < h_0$ for the first time, the following equations will be valid:
(calling the magnitude of velocity at $h=0$ as $v_0$) $$\frac{1}{2}mv_0^2 = mgh \Rightarrow v_0 = \sqrt{2gh}$$
and as the motion is of uniform acceleration,
$$v(t) = v_0 - gt \ (g = 2G\pi\sigma)$$ $$\Rightarrow -v_0 = v_0 - gt \Rightarrow t = \frac{2v_0}{g}$$
Substituting the expression for $v_0$ into the above, $$t = 2\frac{\sqrt{2gh}}{g} = 2\sqrt{\frac{2h_0}{g}},$$ which is exactly the twice of the time taken for the first interval ($-h_0 \leq h < 0$). So we can deduce the following graph.
Let's then perform simple integrations to find $v(t)$ and thus $h(t)$. The main problems here would be to find appropriate integration constants so that at the end both $v(t)$ and $h(t)$ are a continuous function. With a bit of physical intuition about the initial conditions, we can conclude that the graphs will look as follows:
Thus the generalisation would be
$$h(t) = -h_0 + \frac{1}{2}gt^2, \ if \ 0 \leq t \leq \Delta t$$ $$h(t) = (-1)^{n+1} v_0 (t-(2n-1)\Delta t) + \frac{(-1)^n g}{2}(t-(2n-1)\Delta t)^2 \ for \ n \in N, \ if \ t \geq \Delta t$$
This is what I came up by myself, and it wasn't even a proper problem in textbooks. I would like you to check if there is any error in my analysis. Also please feel free to tell me if there is any better or simpler (perhaps less algebraic and more physical?) way to reach the same conclusion.