Let $A$ be a commutative ring with $1$, and define for $f\in A$ the distinguished open set $D(f)=\{P\in\operatorname{Spec}A\mid f\not\in P\}$.
Suppose we have $D(f)=\bigcup_{i\in I}D(h_i)$ over some index set $I$ and where $h_i\in A$ for every $i\in I$. I'd like to show that there is a finite subset of $I$, call it $\{1,\dots ,n\}$ for which $D(f)=\bigcup_{i=1}^n D(h_i)$.
I can make some progress on this. We have $D(f)=\bigcup_{i\in I}D(h_i)$ if and only if $V(f)=\bigcap V(h_i)=V(\sum_i (h_i))$, and so $f\in\sqrt{\sum(h_i)}$, which means $f^n=\sum_{i=1}^N b_ih_i$ for some $N\geq 1$ and some $b_i\in A$.
Now, how do I "get rid of" the $b_i$'s so that I can end up at the desired form?