Indiana Pacers forward Bojan Bogdanovic, front, and Denver Nuggets guard Gary Harris watch the ball get away during the first half of an NBA basketbal

Indiana Pacers center Myles Turner, right, got up for a basket as Denver Nuggets center Nikola Jokic defends during the first half of an NBA basketbal

DENVER (AP) — Paul Millsap hit a left-handed layup with 7 seconds remaining, Nikola Jokic scored 26 points before being ejected in the fourth quarter for arguing and the Denver Nuggets moved to the verge of their first playoff spot since 2012-13 with a 102-100 victory over the Indiana Pacers on Saturday night.

The magic number for the Nuggets dropped to one as they remained in the No. 2 spot behind Golden State. Denver ran its home record to a Western Conference-leading 30-6.

Jokic and the Nuggets were up 96-89 with 2:56 remaining when Jokic was called for a foul while jostling with Myles Turner. Jokic was incensed at the call and kept barking at official Tony Brothers, who tossed Jokic. Indiana later tied the game at 100, before Millsap hit the winner over Turner. Bojan Bogdanovic's 3-pointer bounced off the rim in the final seconds.

Millsap finished with 15 points and 13 rebounds for Denver, which overcame an 18-point, first-half deficit.

Thaddeus Young led Indiana with 18 points and 10 boards. The magic number for earning their fourth straight playoff spot stays at one for a Pacers team that hasn't won in Denver since Nov. 27, 2007.

Both teams entered the game coming off last-second wins. Wesley Matthews hit a follow shot with 1.8 seconds left in a victory over Oklahoma City on Thursday. Jokic hit a one-handed shot at the buzzer to get by Dallas that same night.

This one went down to the wire as well with Jokic's outburst opening the door. Bogdanovic hit the technical free throws and Turner two more for the foul by Jokic.

Turner knotted the game at 100 with 27 seconds remaining by hitting one of two free throws. That set the scene for Millsap, who drove in on Turner and just lofted it up. The Nuggets improve to 12-3 this season in games decided by three points or less.

Trailing by as many as 18 points in the second quarter, the Nuggets closed out the half on a 15-2 run. Will Barton hit a 3-pointer with 1.4 seconds remaining to trim the deficit to 60-57 at the break.

Jokic had a big opening quarter with 16 points on 7-of-10 shooting.

TIP-INS

Pacers: G Tyreke Evans returned after missing three games due to personal reasons and a respiratory infection. He had five points.

Nuggets: The teams held a moment of silence for the victims of the mosque shootings in New Zealand. ... The Nuggets donned their rainbow skyline uniforms. Malik Beasley wore orange shoes to go with them, while Gary Harris went with red.

HIGH EXPECTATIONS

The Nuggets have missed the playoffs in each of the last two seasons by a spot. This season, they've left nothing to chance.

"We've seen what we're capable of and we're going to hold ourselves to the highest standard possible," Nuggets coach Michael Malone said.

INCREASED ROLE

With Victor Oladipo's season-ending knee injury, the Paces are using Bogdanovic in even more creative ways.

"We are putting the ball in his hands and running more pick-and-roll," coach Nate McMillan explained.

UP NEXT

Pacers: At Trail Blazers on Monday. They've lost nine straight in Portland.