News for hackers. Stuff that matters.
Re:Breaking Pills by tyho on Friday September 20, 2019 @05:09AM (#21024650)
I find a great way to find the rule for a numeric sequence when only having a few examples is to plug it into to OEIS:

https://oeis.org/search?q=0%2C1%2C3%2C11&language=english&go...

https://oeis.org/wiki/Rational_sequences

OEIS tells us that E(n) is the harmonic numbers.

Re:Breaking Pills by imglorp on Friday September 20, 2019 @07:30AM (#21025422)
I played with this exact pill bottle problem as Mark last year but had a different interest. It turns out the triangular numbers pop out of the same problem. Thanks, OEIS.

https://github.com/mnp/pill-bottle