frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Neomacs: Rewriting the Emacs display engine in Rust with GPU rendering via wgpu

https://github.com/eval-exec/neomacs
1•evalexec•2m ago•0 comments

Show HN: Moli P2P – An ephemeral, serverless image gallery (Rust and WebRTC)

https://moli-green.is/
1•ShinyaKoyano•6m ago•0 comments

How I grow my X presence?

https://www.reddit.com/r/GrowthHacking/s/UEc8pAl61b
1•m00dy•7m ago•0 comments

What's the cost of the most expensive Super Bowl ad slot?

https://ballparkguess.com/?id=5b98b1d3-5887-47b9-8a92-43be2ced674b
1•bkls•8m ago•0 comments

What if you just did a startup instead?

https://alexaraki.substack.com/p/what-if-you-just-did-a-startup
1•okaywriting•15m ago•0 comments

Hacking up your own shell completion (2020)

https://www.feltrac.co/environment/2020/01/18/build-your-own-shell-completion.html
1•todsacerdoti•17m ago•0 comments

Show HN: Gorse 0.5 – Open-source recommender system with visual workflow editor

https://github.com/gorse-io/gorse
1•zhenghaoz•18m ago•0 comments

GLM-OCR: Accurate × Fast × Comprehensive

https://github.com/zai-org/GLM-OCR
1•ms7892•19m ago•0 comments

Local Agent Bench: Test 11 small LLMs on tool-calling judgment, on CPU, no GPU

https://github.com/MikeVeerman/tool-calling-benchmark
1•MikeVeerman•20m ago•0 comments

Show HN: AboutMyProject – A public log for developer proof-of-work

https://aboutmyproject.com/
1•Raiplus•20m ago•0 comments

Expertise, AI and Work of Future [video]

https://www.youtube.com/watch?v=wsxWl9iT1XU
1•indiantinker•21m ago•0 comments

So Long to Cheap Books You Could Fit in Your Pocket

https://www.nytimes.com/2026/02/06/books/mass-market-paperback-books.html
3•pseudolus•21m ago•1 comments

PID Controller

https://en.wikipedia.org/wiki/Proportional%E2%80%93integral%E2%80%93derivative_controller
1•tosh•25m ago•0 comments

SpaceX Rocket Generates 100GW of Power, or 20% of US Electricity

https://twitter.com/AlecStapp/status/2019932764515234159
2•bkls•25m ago•0 comments

Kubernetes MCP Server

https://github.com/yindia/rootcause
1•yindia•26m ago•0 comments

I Built a Movie Recommendation Agent to Solve Movie Nights with My Wife

https://rokn.io/posts/building-movie-recommendation-agent
4•roknovosel•26m ago•0 comments

What were the first animals? The fierce sponge–jelly battle that just won't end

https://www.nature.com/articles/d41586-026-00238-z
2•beardyw•35m ago•0 comments

Sidestepping Evaluation Awareness and Anticipating Misalignment

https://alignment.openai.com/prod-evals/
1•taubek•35m ago•0 comments

OldMapsOnline

https://www.oldmapsonline.org/en
1•surprisetalk•37m ago•0 comments

What It's Like to Be a Worm

https://www.asimov.press/p/sentience
2•surprisetalk•37m ago•0 comments

Don't go to physics grad school and other cautionary tales

https://scottlocklin.wordpress.com/2025/12/19/dont-go-to-physics-grad-school-and-other-cautionary...
2•surprisetalk•37m ago•0 comments

Lawyer sets new standard for abuse of AI; judge tosses case

https://arstechnica.com/tech-policy/2026/02/randomly-quoting-ray-bradbury-did-not-save-lawyer-fro...
5•pseudolus•38m ago•0 comments

AI anxiety batters software execs, costing them combined $62B: report

https://nypost.com/2026/02/04/business/ai-anxiety-batters-software-execs-costing-them-62b-report/
1•1vuio0pswjnm7•38m ago•0 comments

Bogus Pipeline

https://en.wikipedia.org/wiki/Bogus_pipeline
1•doener•39m ago•0 comments

Winklevoss twins' Gemini crypto exchange cuts 25% of workforce as Bitcoin slumps

https://nypost.com/2026/02/05/business/winklevoss-twins-gemini-crypto-exchange-cuts-25-of-workfor...
2•1vuio0pswjnm7•40m ago•0 comments

How AI Is Reshaping Human Reasoning and the Rise of Cognitive Surrender

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6097646
3•obscurette•40m ago•0 comments

Cycling in France

https://www.sheldonbrown.com/org/france-sheldon.html
2•jackhalford•42m ago•0 comments

Ask HN: What breaks in cross-border healthcare coordination?

1•abhay1633•42m ago•0 comments

Show HN: Simple – a bytecode VM and language stack I built with AI

https://github.com/JJLDonley/Simple
2•tangjiehao•44m ago•0 comments

Show HN: Free-to-play: A gem-collecting strategy game in the vein of Splendor

https://caratria.com/
1•jonrosner•45m ago•1 comments
Open in hackernews

My Favorite Math Problem

https://bytesauna.com/post/my-favorite-math-problem
61•mapehe•2mo ago

Comments

mapehe•2mo ago
Hi HN,

I'm Matias. I run a small business (ByteSauna) with a blog on the site. I try my best to serve well thought out content. Here's this weeks post.

Hope you enjoy it!

loloquwowndueo•2mo ago
The content was interesting but the cookie consent and in-your-face subscription pop-ups are infuriating and annoying. Thought I’d mention it since you did go to the trouble of popping by this discussion!
rasse•2mo ago
Nice problem! I wonder if there is a generic way of testing such a problem with different board arrangements. For example, could you apply knot theory or another concept?
mapehe•2mo ago
Well, upon a closer look, one notices that the chessboard coloring is not necessary for the problem statement. It's kind of a hint actually as you could equally well just consider a blank 8x8 board and realize that this coloring arugment works. I just feel the problem is unreasonably difficult that way.

The coloring is kind of additional structure that is applied on the object you are working with. And I think this idea of "applying structure" is a very generic. You can solve similar combinatorial arrangement problems that way, but it goes beyond that.

I think that a nice, classic (and significantly more advanced) example is showing that plane and punctured plane (a plane with one missing point) are topologically different. The fundamental (homotopy) groups of these spaces are different, and hence the spaces cannot be continuously deformed to each other.

Somehow the spirit is the same, I feel. In this topology proof it's not a grid you are working with, but a topological space. And the structure you apply is not a coloring, but something quite abstract (a homotopy group). The idea in both cases is similar, though: You apply structure and this structure reveals something that's not easy to see directly.

The magic part is figuring out the structure that produces the data you need.

praptak•2mo ago
Dominoes on mutilated chessboards are matchings in a bipartite graph, a well studied problem for which an efficient algorithm exists.
CrazyStat•2mo ago
I haven’t seen this representation before—I suppose the vertices of the graph are the chessboard squares, the edges are adjacency (white squares can only be adjacent to black squares and vice versa, which gives the bipartite-ness), and covering two squares corresponds to removing those two vertices from the graph?
praptak•2mo ago
Yes, and this is a generalisation of the trick from the problem described in the article.

The chessboard in the article is a bipartite graph with different number of vertices in the two groups, so it cannot have a perfect matching.

vorticalbox•2mo ago
last year i learn about the Collatz Conjecture which i found super interesting.
svat•2mo ago
This is a classic of course, but there is a lesser known extension to this problem (to be read only after this problem has been solved), which also has a beautiful "proof without words":

> an 8x8 board in which squares at opposite corners have been removed cannot be tiled with dominoes, [...]. But what if two squares of different colours are removed? Ralph E. Gomory showed that it is always possible, no matter where the two removed squares are

Proof/spoiler: https://mathoverflow.net/a/17328/111

cochleari_major•2mo ago
I am a big fan of the following related problem:

* web ui: https://openprocessing.org/sketch/126042/

* Numberfile video: https://youtu.be/lFQGSGsXbXE

amelius•2mo ago
The problem is slightly more challenging if you don't use a chessboard, but just a grid, because then you must first come up with the idea of coloring it.
estomagordo•2mo ago
Good point. As presented, I thought it was very easy.
lupire•2mo ago
Stating the "opposite colored holes don't prevent tiling by dominoes" problem requires some kind of "coloring" to know which pairs of tiles are in scope for being holes.
svat•2mo ago
I agree with the comment you're replying to: the original problem (in the linked post) is about an 8x8 square in which 1x1 squares at either corner are removed, and asking whether it can be tiled by 2x1 tiles. The idea of "coloring" the board and the tiles can then be presented as part of the solution -- in fact, this is a great example of how one idea (coloring) can make a problem much earlier.

I believe your comment is actually about the extension (to this problem and solution) that I posted in another comment: https://news.ycombinator.com/item?id=46005842

tromp•2mo ago
I like this closely related and slightly more subtle problem:

Which unique square (up to symmetry) must be left if you cover the 64 squares of a chess board with 21 3x1 trominoes?

CrazyStat•2mo ago
Knowing that the solution is unique makes this trivial to solve in a couple minutes just by scribbling on a piece of paper (I just did). It does not seem more subtle than the original.

Proving that the solution is unique may be more subtle.

867-5309•2mo ago
did anyone else just play what felt like a mental game of Snake in their head?
pizzafeelsright•2mo ago
I do not care for this problem as it is not a real problem.

Kaprekar's constant is interesting. This one is not.

As for explaining complex math to children, I like to start with zero not being a real number. "If you have zero cookies why are we talking about cookies? There are none. You're now thinking of cookies, which means you have zero cookies, and if you want one then you have negative cookies."

evmar•2mo ago
From the title, I first imagined what my favorite math problem was, then clicked on the article -- and they had the same one!

For me, the reason this problem is cool is that it exemplifies mathematical thinking: superficially the problem is about placing individual dominos but the solution is about seeing the underlying structural properties. Similar to Euler realizing the bridges in Königsberg were a graph.

lacker•2mo ago
A similar problem that I like.

A "lattice point" on the plane is a point where both coordinates are integers, like (3, 4) or (-2, -1). Prove that for any five lattice points, there will be two of them that if you connect them with a line segment, there's another lattice point between them on that line.

tantalor•2mo ago
Worth mentioning that the "another lattice point on that line" is not necessarily one of the five.
stephan411•2mo ago
But it seems to be a special point too
stephan411•2mo ago
Nice, thank you. I wouldn't have believed it.
bobbylarrybobby•2mo ago
Wow, very cool problem. Took me a second, very satisfying to land on the solution.
chias•2mo ago
If you want to avoid "scary" math words, you could frame this as picking any 5 'corners' on a sheet of squared paper (of any arbitrary size)
EliRivers•2mo ago
What I like most about this math problem is explaining it to people who understand what I'm saying but still insist that it might be possible and they're going to do it. It's a nice lesson for me to think about and carry through life.
j2kun•2mo ago
If you enjoy that problem you might enjoy:

Cut one corner off a chessboard. Is it possible to tile the remaining board with 3-by-1 dominoes?

(Spoiler/solution: https://www.jeremykun.com/2011/06/26/tiling-a-chessboard/)

jrm4•2mo ago
For some reason this reminds me of the following teaser:

In a typical "tournament" -- say 64 teams, how many matches/games are played before declaring the final winner?

Not sure if there's a way to do spoilers here, but there's a very easy one sentence explanation that involves very close to "no math at all."

gbacon•2mo ago
Very close, as in one step of arithmetic.
dhosek•2mo ago
A hint (bordering on solution): each game eliminates a player. Note that this will also give a solution to a tournament where there are not a power of two entrants (ignoring byes).
dhosek•2mo ago
One of my favorites is one that you should be able to do in your head: The product of two numbers is 37, their sum is 18. What is the sum of their reciprocals?

(I happened to encounter this two times in close succession when I was getting my teaching credential: first in a teaching manual and then a day or two later, a couple teachers at the school where I was doing my student teaching were puzzling over it and thought they’d challenge me with it and I gave them the answer immediately which shocked them since they’d spent a long time on solving this with algebra and I did it in my head in less than a second. To be honest, I probably wouldn’t have been so quick at the solution without having already seen it.)

pretzellogician•2mo ago
37 is prime. Are you sure this problem statement is correct?
deepspace•2mo ago
The problem does not state that the numbers have to be integers. a and b happen to be 9 +- 2 sqrt(11)
pretzellogician•2mo ago
Thanks! The mention that it was solved in under a second must have thrown me :-)
fsckboy•2mo ago
>The problem does not state that the numbers have to be integers. a and b happen to be 9 +- 2 sqrt(11)

but the problem does state that you should be able to do it in your head. who exactly should be able to formulate and reduce simultaneous equations in xy then apply the quadratic formula (with some spicy +/- to keep track of) to get an answer with an irrational number, all in their head? usually, when a problem like this is given there is a shortcut that leads to a simple, not only rational but integer, answer.

the statement "you can do it in your head" generally does not entail this much complexity, as the person who said "you can do it in your head" comes out and says after previously spending a fair amount of time working on it.

words matter, people, that's why I didn't throw in the adjective integral even though I could have.

forbiddenvoid•2mo ago
You _can_ literally do this in your head, and also, it doesn't matter what the numbers are, what the product is or what the sum is.
gweinberg•2mo ago
Well, I had to write it down, but I have to write down everything these days. But from the way the problem was phrased, it was obvious you don;t have to actually find to numbers.
sltkr•2mo ago
> the statement "you can do it in your head" generally does not entail this much complexity

It's funny that you jump to accusing OP of falsely claiming you can do it in your head, without apparently considering the alternative: that the intended solution is a simpler one than you outlined.

Trust me, you can do this in your head if you know basic high school level math, and you don't need to solve quadratic equations or keep a ton of numbers in your head at the same time.

If I ask you if 123456789 is a prime number, do you complain that it's not fair to make you perform division on such a long number?

lupire•2mo ago
That's only 9 digits. Determining if 12345678910 is primes would be outrageous. That's got more digits than I have fingers!
fsckboy•2mo ago
>Trust me, you can do this in your head if you know basic high school level math

yeah, i guess it was a mistake to graduate from MIT undergrad and grad school in quant fields, i should have just stuck with high school math

>If I ask you if 123456789 is a prime number, do you complain that it's not fair to make you perform division on such a long number?

you tell me, is 13717421 prime?

dhosek•2mo ago
The difference between the two is that it’s clear that 123456789 can’t be prime since the sum of the digits is a multiple of 3, which doesn’t even require finding the sum since we know 1+8, 2+7 up to 4+5 are multiples of 3. I can even tell you that 43717421 isn’t prime without having to do a divisibility test on it by looking at the digits, although it is a bit more tedious than the 123456789 field.
fsckboy•2mo ago
the difference between the two is that I removed the factors of 3 from 123456789 to get 13717421. so much for your secret knowledge of a hyperspecific case.
sltkr•2mo ago
You're still missing the point of these problems, which is to challenge you to come up with a clever proof rather than brute-force the solution.

dhosek understood the assignment by making an argument that 123456789 is composite without relying on explicit division of a 9-digit number, which most people would find rather difficult to do in their heads.

Similarly, the posted link is about tiling a mutilated chessboard with dominos. Tiling problems in general are NP-hard, so clearly this isn't something you can solve in your head _in general_, but the charm of that specific problem is that you _can_ solve it by making an insightful observation to avoid the brute force computations.

Similarly, for the puzzle you complained about: we are asked to find 1/a + 1/b where a × b = 37 and a + b = 18. The general solution is to solve a system of two linear equations which involves solving a quadratic equation, which is possible, but tedious and difficult to keep in your head, but the entire point of the question is that there is a better way to figure out the result.

IanCal•2mo ago
You don’t have to do all that.

If you have a+b and a-b you’ll get 2a when added together.

So knowing just the sum we can say that a is 9 in this setup.

Now we need to figure out b.

Multiplying out those you get

a^2 + ab -ab - b^2

And I get a longing for not having started this a phone.

Cancels and fill in what we know and we get 81 - b^2 = 37

b = sqrt(44) = sqrt(4)*sqrt(11) = 2sqrt(11)

lupire•2mo ago
None of this is required for solving the problem in your head. All that is required is the ability to add 1-digit unit fractions in your head, as the problem requests.
jhncls•2mo ago
ab = 37; a+b = 18; 1/a + 1/b = b/ab + a/ab = (a+b)/ab = 18/37
deepspace•2mo ago
> they’d spent a long time on solving this with algebra

I don't get it. I don't see why / how it would take any longer than a second or two to solve 'with algebra'. What does that even mean? You would just maybe write down the steps rather than doing them in your head. Is there any other way to solve the problem?

Sniffnoy•2mo ago
I'm pretty sure he means they did the problem by first figuring out the numbers a and b. That's the slow way. I can reveal the fast way if you want, but maybe you should think about it a bit more first! :)
deepspace•2mo ago
I know the 'fast way'. Took me a second or two to get the answer, but it is so obvious that I cannot imagine anyone trying to solve this by calculating a and b first.
lupire•2mo ago
For novice students of algebra first learning to solve for values of variables, the idea of NOT solving for the values of the variables is a major step.
dhosek•2mo ago
Or for high school teachers of algebra as it turned out.
I_complete_me•2mo ago
This is a very nice puzzle.

I recommend looking also at the THOG problem. See https://en.wikipedia.org/wiki/THOG_problem.