https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P+%3D+P%28a%2Cv%2C+Z%2C+d%2C+N%29+%3D+a+%2B+S+%5Ccdot+v+%3D+a+%2B+%5Csum_%7Bi+%5Cleq+d%2C+n_i+%5Cleq+N_i%7D%7Bn_i+v_i%7D&bg=ffffff&fg=000000&s=0