How to select in css 1st 4th 5th or 2nd 3rd 6th element : <p>How to use css nth child selector properly?</p>

<p>I have 6 divs and i need to select 1st 4th and 5th element, I can get 1st and 4th but cannot get the 5th element.</p>

<p>That's what i tried at the moment:</p>

<pre><code> .partners-logo:nth-child(3n+1) {
     background-color: #f7f7f7;
}
</code></pre>
