Mathematics,calculations or any formulas are not that helpful when we talk about gambling.Of course this depends on each game but in general you cannot trick and win against the house. You think you are the only one who did this research before and came up with the same idea?No, of course. Dozens of people have tried to beat casinos by using different algorithms but no one has successfully to find a formula that will get them a constant profit. Gambling is a game of luck, and no one can prove its not since no one can be in profit for a long time,unless luck is involved.