Skip to content

Comment on The answer is 2011. The question can be brute force.parent

Comments

You've missed my point. Why do you not consider sqrt(3!)? It's not integral, but if you multiply by sqrt(6), the result IS integral. I don't think an optimal solution will have non-integral subexpressions, but you need an argument to justify that. Or you need to include them in your brute force search.

That's right, sorry I missed your point. I edited the post accordingly, thanks a lot for your input!

Note however that I did not pretend to have an exhaustive search, just a "brute" one to find a solution. I changed "enumerating all the candidate" to "enumerating the candidate" to remove some confusion.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.