Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tax Collector Game #207

Open
KarlCarl54 opened this issue Jan 29, 2025 · 0 comments
Open

Tax Collector Game #207

KarlCarl54 opened this issue Jan 29, 2025 · 0 comments

Comments

@KarlCarl54
Copy link

This problem is documented in many places, including here:
https://archive.nytimes.com/wordplay.blogs.nytimes.com/2015/04/13/finkel-4/
and here (one person version only):
https://en.wikipedia.org/wiki/Taxman_(mathematical_game)

The problem was originally conceived as a way to get junior high students interested in mathematics. But the problem goes way beyond a fun classroom problem.

As the value of the starting integer N increases, finding the optimum solution becomes more and more difficult.
This is a zero sum game, so the optimum solution is the one that minimizes the total amount taken as tax.

For starting values up to 1000, the OEIS database has the optimum solutions:
https://oeis.org/A019312

I have written a Python algorithm that is robust. But it deviates from optimum as N increases since there is no known algorithm ,except brute force, that returns the optimum solution. It would be great to see other solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant