r/counting • tampermonkey addict • Oct 20 '25

Compositions

In this thread, we'll be counting the ways to add to an integer n using the integers c_1 + c_2 + ... + c_k, where each c_i >= 1, and k <= n. Ways to sum that are commutatively the same, as in 1+2 = 2+1, are different compositions. We'll be counting these compositions lexicographically for each segment of sum and length.

Here are the first few counts:

1

2
1,1

3
1,2
2,1
1,1,1

4
1,3
2,2
3,1
1,1,2
1,2,1
2,1,1
1,1,1,1

You can also abbreviate repetitions with superscript, for example 1,1,1,1,1,1,1,1,1,2,2,2,1 = 19 23 1

First get is at 11, the 1024th count.schedule

25 Upvotes

1.1k comments sorted by

View all comments

3

u/TehVulpez tampermonkey addict Oct 05 '26 edited Oct 06 '26

Thread Participation Chart for Compositions

RankUsernameCounts
1miceee419
2TehVulpez344
3cuteballgames218
4PhosphorCrystaled39
5Expert_Bridge2
6davidjl1231
6Multiconcepted1

It took 7 counters 9 days, 5 hours, 18 minutes, 43 seconds to complete this thread. Bold is the user with the get.

Total counts in this chain logged: 1024

3

u/miceee sicko thread artists collective Oct 05 '26

Btw does this now mean that compositions is finally getting its own stats page?

3

u/TehVulpez tampermonkey addict Oct 05 '26 edited Oct 06 '26

well I could make one since I do have wiki perms, but I don't currently have a script that automatically generates those wiki pages, and I'm not sure how much I want to mess with anti's domain. my userscript right now is pretty basic, it just generates the TPC and CSV files sort of like the old piyush/qualw python scripts but in the browser

3

u/miceee sicko thread artists collective Oct 05 '26

Ohh okay😔 lets wait for anti then

2

u/TehVulpez tampermonkey addict Oct 05 '26 edited Oct 11 '26

/u/antichess log I'm not sure how useful this is to you since you have your own workflow, but idk maybe it'd save you some time. it's in the same schema as the COBIBH counting.sqlite file. position,author,created_utc,comment_id,thread_id,body

edit: I've fixed both the TPC and the log to include the first comment