Hacker News new | ask | show | jobs
by oisdk 2565 days ago
What's the simpler pattern?
1 comments

Presumably multiplying by two and adding one? That's the pattern that jumped out to me, unless they're talking about something more subtle.
Oh, of course! Looking at it now that's pretty obvious, lol.

Although I think even if I had spotted that I still would have put it into oeis to see if there was a quick membership test.

Which is to say, 2^n-1.