Congruence properties for a certain kind of partition functions