Y
Hacker News
new
|
ask
|
show
|
jobs
by
trehalose
171 days ago
It's not
very
tedious. Instead of dividing the product by 2, you can just divide whichever of x or x+1 is even by 2 before multiplying.