Let $X$ be a smooth, projective complex algebraic variety. Let $D$ be a simple normal crossings divisor on $X$, with irreducible components $D\_i$, for $i \in I$. For each non-empty subset $J \subset I$, put 
$$
D\_J=\bigcap\_{i \in J} D\_i 
$$ Define also $D(0)=X$ and, for $m \geq 1$, 
$$
D(m)=\bigsqcup\_{|J|=m} D\_J 
$$ Then $D(m)$ is a smooth closed subvariety of $X$ of codimension $m$. Put also $U=X-D$. Finally, denote for any smooth, complex algebraic variety $Z$
$$
\chi(Z)=\sum (-1)^k \dim H^k(Z, \mathbb{Q}) 
$$


One knows from mixed Hodge theory that the Euler characteristic of $U$ is determined by the alternating sum of the Euler characteristics of $D(m)$, that is
$$
\chi(U)=\sum\_{m \geq 0} (-1)^m \chi(D(m))
$$


**My question is**: is there a formula computing 


$$
\sum (-1)^m m \chi(D(m))=-\chi(D(1))+2\chi(D(2))-3\chi(D(3))+\cdots 
$$


somehow in terms of $U$ or just the first $D(m)$? 


I tried to derivate the Hodge polynomial but I didn't get anything. Thanks for your help!



a question on Euler characteristic of normal crossing divisors
Your formula is a little bit wrong. You want $D(0)= X$, not $D$, and your summation should start at $m=0$.


This shouldn't work. Let $X$ be $\mathbb P^3$ with $2$ lines on a quadric surface blown up, becoming copies of $\mathbb P^1 \times \mathbb P^1$. Let $D$ be the union of the quadric surface and the exceptional divisors. Then $X- D$ is the same in both instances.


Then if the two lines intersect: $\chi(D (0) ) = 6$, $\chi(D (1)) = 8$, $\chi(D(2))=2$, $\chi(D(3))=0$.


If the two lines do not intersect: $\chi(D(0))=8$, $\chi(D(1)) = 8$, $\chi(D(2))=0$, $\chi(D(3))=0$.


So you get $-4$ in the first case but $-8$ in the second. And there should be no way to deal with this in general. Unless you know enough about $U$ that you can reconstruct the whole arrangement, or the whole arrangement up to some operation that, like blowing up points on a surface, just happens to leave this quantity unchanged, you will not be able to compute this number.


Edit: Let $T$ be the total Chern class of $\Omega\_X$. Then by the adjunction formula, the total Chern class of $\Omega\_{D\_J}$ is $T$ divided by the Chern class of the ideal of functions vanishing on $D\_J$. Since $D\_J$ is a complete intersection, this is isomorphic to $\prod\_{i \in J} (1- c\_i)$. To get $\chi(D\_J)$ , we extract the top Chern class by hitting it with the fundamental class of $D\_J$, which is the fundamental class of $X$ times the cycle class of $D\_J$. Since $D\_J$ is a transverse intersection, its cycle class is $\prod\_{i \in J} c\_i$. So the generating function:


$$ \sum\_m \chi(D(m)) (-t)^{m} = \sum\_{J \subset I} (-t)^m P\left( T \cup \prod\_{i \in J} \frac{c\_i}{1-c\_i}\right)=P\left(T \cup \sum\_{J \subset I} \prod\_{i \in J} \frac{-t c\_i}{1-c\_i} \right) = P \left (T \cup \prod\_{i \in I} \left ( 1 - \frac{t c\_i}{1-c\_i} \right) \right) $$


To get the Euler characteristic of $U$, we just take the generating function and evaluate it at $t=1$. To get your sum, we just differentiate the generating function at $t=1$.


I think there might also be an elegant way to express this using Grothendieck-Hirzebruch-Riemann-Roch.


