We find and prove a class of congruences modulo 4 for Andrews' partition with certain ternary quadratic form. We also discuss distribution of EO(n) and further prove that EO(n)≡0(mod4) for almost all n. This study was inspired by similar congruences modulo 4 in the work by the second author and Garvan.