After Amit says "$$2015$$", there are $$5102-2015=3087$$ numbers remaining. Thus the counting goes round the table $$3087\div6= 514$$ times with a remainder of $$3$$, so the last to count is Devi. 
Amit, Bede, Cain, Devi, Emily and Frederick sit around a circular table in that order. Amit starts by saying "$$2015$$", Bede says "$$2016$$", Cain says~"$$2017$$" and so on round the table. Who will eventually say"$$5102$$"? 
* $$$$Amit 
* $$$$Bede 
* $$$$Cain 
* $$$$Devi 
* $$$$Emily 