Bill Gates will invest in only one of 5 companies: $C_1$, $C_2$, $C_3$, $C_4$ or $C_5$. I will make a lot of money if I invest in the same company. I decide to invest in company $C_1$ and I inform Bill Gates. He tells me that he is going to invest in neither company $C_5$ nor $C_4$.
Should I invest in a company other than $C_1$?
I believe that there won't be any difference. 1/3 chances for each of the remaining companies. My friend told me that the correct solution would be to change companies. What does the math community think?
Your friend is absolutely right. When you chose your company, your odds were $20%$ as you had to pick $1$ out of $5$ possibilities. However, after he eliminates $2$ choices, there are only $3$ possibilities so if you switch, you will have an odds of $100%-20%=80$ chance for the companies $2$ and $3$ since Bill Gates has told you that he has not invested in the other companies. Now divide by $2$ to get chance for each company, which is $20$ percent. Think about it: the odds of you getting it right without any information is lower than using the information provided. Information changes probability.
This is a variation of the famous "Monty Hall" problem. I suggest that you read up on it here https://en.wikipedia.org/w/index.php?title=Special:Search&search=Monty+Hall+problem
or watch a youtube video on it. There are thousands of sources discussing the problem in detail.