Concept:
If \(P(x_1,y_1)\) is the foot of the perpendicular from the origin to a line, then the line is perpendicular to the vector
\[
\overrightarrow{OP}.
\]
Hence the equation of the line is
\[
x_1x+y_1y=x_1^2+y_1^2.
\]
We use the given \(x\)-intercept condition to determine the possible values of \(\alpha\).
Step 1: Write the equation of the line whose foot of perpendicular from the origin is \(P(\alpha,\alpha+1)\).
Since
\[
P(\alpha,\alpha+1),
\]
the required line is
\[
\alpha x+(\alpha+1)y
=
\alpha^2+(\alpha+1)^2.
\]
\[
\alpha x+(\alpha+1)y
=
2\alpha^2+2\alpha+1.
\]
Step 2: Use the given \(x\)-intercept.
The \(x\)-intercept is
\[
\left(-\frac52,0\right).
\]
Substituting
\[
x=-\frac52,\qquad y=0,
\]
into the line equation,
\[
-\frac52\alpha
=
2\alpha^2+2\alpha+1.
\]
Multiplying by \(2\),
\[
-5\alpha
=
4\alpha^2+4\alpha+2.
\]
\[
4\alpha^2+9\alpha+2=0.
\]
Step 3: Find the possible values of \(\alpha\).
Factorizing,
\[
4\alpha^2+9\alpha+2
=
(4\alpha+1)(\alpha+2).
\]
Hence,
\[
\alpha=-\frac14
\]
or
\[
\alpha=-2.
\]
Step 4: Find the square of the distance \(OP\) for each point.
Since
\[
P(\alpha,\alpha+1),
\]
\[
OP^2
=
\alpha^2+(\alpha+1)^2.
\]
For
\[
\alpha=-\frac14,
\]
\[
OP^2
=
\frac1{16}+\frac9{16}
=
\frac{10}{16}
=
\frac58.
\]
For
\[
\alpha=-2,
\]
\[
OP^2
=
(-2)^2+(-1)^2
=
5.
\]
Step 5: Find the required sum.
\[
\frac58+5
=
\frac58+\frac{40}{8}
=
\frac{45}{8}.
\]
Step 6: Write the final answer.
\[
\boxed{\frac{45}{8}}
\]