When you’re the Jets and your improbable playoff dream lives only through the grace of advanced mathematics after last week’s miserable loss that included rookie quarterback Geno Smith’s second half benching, you need a feel good remedy, something to lift the spirits.

Something like the Oakland Raiders for an opponent.

The positive vibes from the Jets’ 37-27 victory over the Raiders at MetLife Stadium Sunday started with the offense and Smith who ran for one touchdown, used his legs to set up another and passed for yet another. And the good stuff extended pretty much everywhere. Special teams scored, and so did receiver Jeremy Kerley after missing three games with a dislocated elbow.

Oh, there were times when the Jets (6-7) looked like last week’s inept Jets. They were burned a 63-yard touchdown burst by Marcel Reece, the Raiders’ fourth-string running back who entered with 22 carries all season — the top three Oakland backs were injured. And a collision between safety Ed Reed and cornerback Antonio Cromartie helped the Raiders (4-9) forge another big play score, a 48-yard touchdown pass from Matt McGloin to Rod Streater in the third quarter.

But for the bulk of the day, the Jets stifled the Raiders, who started McGloin at quarterback, switched to Terrelle Pryor and then returned to McGloin. By the end of the game, Oakland was using its fourth and fifth running backs and their auto mechanic in the backfield. The Jets special teams contributed a score when Antonio Allen blocked a punt and recovered it in the end zone.

The Jets went on top early and never were overtaken. The Jets opened abusing the Raiders and moved 57 yards in six plays, a 32-yard Smith to Santonio Holmes hookup serving as the big gainer. The drive stalled and Nick Folk kicked his first of his three field goals for a 3-0 lead. Folk hit from 41, 23 and 51 yards.