What is pinkish brownish discharge a week after a period ends and it lasts for a few days?

It's the blood. The reason for it looking brown/pink is because you haven't had your period in a while (1 hour or so). It also means your period is about to end for the month.