Back to General discussions forum
Is there any easy method to calculate lucky tickets? I have coded this but if N is large or B is large it's taking too much time to give result...can anyone help me provide a easy sol to calculate.
Hint: 1. Brute force a couple of results. 2. Use OEIS.
edit: also seperate odd and even cases