About dos.out

Hello:

After looking into the runstruct_vasp, I find it is difficult to understand the formula to calculate dos.out. In particular, I am puzzled by the tackle of spin since it just uses a (3-s). Can someone give me some guidance? Thank you very much!

Shijun

if s=1 (not spin polarized) then each state must contain 3-s=2 electrons.
if s=2 (spin polarized) then each state must contain 3-s=1 electron.
(I guess 2/s would have been more obvious!)