The Beginner Box Game Master’s Guide has an explanation on pages 40–41 for building encounters. The gist of it is you determine a budget and then pick monsters per that budget. If you have more or less than 4 players, you add or remove monsters from the encounter. See the “Different Party Sizes” section on page 41. Note that you still award the originally budgeted XP.