In my calculation I took into account the risk of sharing the prize, although I had to make assumptions on how many other people were playing (you can get a sense of how many other people there are playing by how much the jackpot increases between draws).  Unless my guess is wrong, I think it still works out even with sharing unless you happen to buy every ticket on the same draw that other people have had the same idea.