Vihari was the first one to go being dismissed by Nathan Lyon on 42.
Pujara missed out on his fourth double hundred in Tests, after returning a catch to Nathan Lyon off his own bowling.
Pujara's departure brought Ravindra Jadeja who played a scintillating knock.
Rishabh Pant completed his second Test century and went on to score 159*.
Jadeja scored a quickfire 81, celebrating his fifty in his inimitable style.
The Australian openers survived a tense 10-over period at the end of the day.