Episode 47
At the Lumiose airport, Ash is heading home to Kanto, Serena is catching a flight to Hoenn, and Clemont and Bonnie have come to see them off. Dedenne doesn’t seem to understand what’s happening, and when Bonnie explains that it’s time to say goodbye to their friends, Dedenne throws a tantrum and runs off to hide! Bonnie soon coaxes it back with a moving speech about pursuing their dreams together, and then it’s time for Serena’s flight and an emotional farewell to Ash. Clemont has the perfect idea for passing the time until Ash has to leave—a battle between Pikachu and Bunnelby, just like on the day they met
Aired 27/10/2016EP 47 - Episode 47

Pokémon the Series: XYZ
The journey of Satoshi and his friends through the Kalos region continues! After Satoshi obtains his seventh gym badge, the group is moving toward the next town when Eureka discovers a mysterious Pokémon resting in her pochette. Soon given the name Puni-chan, it is one that even Satoshi and Serena's new Pokémon Zukan cannot identify. However, it quickly becomes apparent that Puni-chan is the target of a mysterious group clad in bright red suits known as Team Flare, aiming to capture the new Pokémon to further their agenda. But when Satoshi and the gang realize that the enigmatic organization has no intention of treating Puni-chan with any decency, they take a stand in opposition to Team Flare's plans, daring to fight back.
With Gojika's predictions looming above them, Satoshi aims for his final gym badge while Serena contests for her last Princess Key in order to be able to compete at the TriPokalon Master Class. But as Team Flare begins to move in search of the mysterious Z, the stories of Pokemon XY and Pokemon XY: Mega Evolution cross paths as Satoshi and his friends, along with Team Rocket, get caught up in a scheme that could put Kalos in great danger.
(Source: MAL Rewrite)