Similac and constipation?

Hi mamas, my one month old can go a couple days without pooping. Our pediatrician said it's because I breastfeed him (but we also give him formula). But my relatives say it's because of the formula. Any suggestions? Maybe switch to a different formula? I don't produce enough milk that's why we do both.