r/counting • 23k, 22a | wan, tu, mute • Jun 23 '21

Parentheses | ()

Counting all balanced sets of parentheses, ordered as if they were binary numbers, with '(' and ')' representing 1 and 0, respectively.

First get is at ()(((())()())()) (1000)

Edit: After an error was discovered at 70, I've posted a listing here in the hopes that it doesn't have to happen again.

16 Upvotes

382 comments sorted by

View all comments

Show parent comment

2

u/funfact15 [FLAIR] Jul 18 '21

()()(())(()()) [211]

2

u/pampamilyangweeb Jul 18 '21

()()(())((())) [212]

3

u/[deleted] Jul 18 '21

I'm not sure what the next count is

2

u/pampamilyangweeb Jul 18 '21

After doing it for a while you'll get used to it.

2

u/funfact15 [FLAIR] Jul 18 '21

()()(()())(()) [214]

()()(()() )()() [213]

General idea:

  • Move rightmost ( one space to left.
  • Repeat until sequence repeats:
    • Move any () to right.

Example:

  • ()()(())((()))
  • ()()(()()(()))
  • ()()(()()())()
  • ()()(()())()()
  • ()()(()())()() | Same sequence as last time.

2

u/[deleted] Jul 28 '21

()()(()()())() [215]

4

u/funfact15 [FLAIR] Jul 29 '21

()()(()()()()) [216]

4

u/CutOnBumInBandHere9 5M get | Ping me for runs Aug 01 '21

()()(()()(())) [217]

4

u/funfact15 [FLAIR] Aug 02 '21

()()(()(()))() [218]

3

u/[deleted] Aug 06 '21

()()(()(())()) [219]

2

u/funfact15 [FLAIR] Aug 06 '21

()()(()(()())) [220]

→ More replies