This is not an answer.
First, how do you calculate $(n-p+1)(p-1)$? $p-1$ is number of unions in each bracket and there is $n-p+1$ brackets. So $(n-p+1)(p-1)$ is the number of unions. The number of intersections is $n-p+1$, hence $(n-p+1)p$? ... Just checking is I understand properly.
Your problem seems to simplify when you use distributive laws $$\begin{aligned}
A\cup(B\cap C)&=(A\cup B)\cap(A\cup C)\\%
A\cap(B\cup C)&=(A\cap B)\cup(A\cap C)\\%
\end{aligned}$$ Using the former, as an example, you have $(a_{1}\cup a_{2})\cap(a_{2}\cup a_{3})=a_{2}\cup(a_{1}\cap a_{3})$ which saves one operation. $$\begin{aligned}
(a_{1}\cup a_{2}\cup a_{3})\cap(a_{2}\cup a_{3}\cup a_{4})&=(a_{2}\cup a_{3})\cup(a_{1}\cap a_{4})\\
(a_{1}\cup a_{2}\cup a_{3})\cap(a_{2}\cup a_{3}\cup a_{4})&=a_{2}\cup((a_{1}\cup a_{3})\cap(a_{3}\cup a_{4}))\\
\end{aligned}$$ saves two and one respectively.
Applying this logic to a general version of your problem is probably slightly messy. Can you do significantly better using other information about your problem?
idea 1: Do you know anything about size of $a_{i}$ as $i$ varies (say your $a_{i}$ getting larger/smaller)? Why? My sense is that the bigger the sets involved, the more time to complete an operation. Then you want to prioritize approach that 'does intersections on the large sets' early on.
idea 2: Even if you do not know anything about size of $a_{i}$, I think you want to aim for an approach that does intersections as early as possible, since this simplifies the subsequent operations.