I'm generating the following sequence , $i = 1 \dots \infty$: $$ y_i = 1/i $$ Given that I have the calculated-value of :
$$ y_x $$
how do I calculate the next value $y_{x+1}$ ? I don't know the index '$x$', I know only the value $y_x$
For example,
if $y_x$ = 0.167 then $y_{x+1}$ = 0.143 i.e. $1/6 \implies 1/7$
I keep only the calculated value, not the current index.
Detailed :
$$y_x = k; k= {\frac 1x}; x = {\frac 1k}$$
$$ y_{x+n} = \frac {1} {x+n} = \frac {1} {{\frac 1k}+n} = \frac {1} {{\frac 1 {y_{x}}}+n}$$