Skip to main content
2 votes

How many partitions do I have?

Desmos, 53 52 bytes f(n)=g(n,n) g(n,m)=\{mn<1:0^{nn},g(n,m-1)+g(n-m,m)\} Try it on Desmos! Try it on Desmos! - Prettified Note that pasting this as-is will ...
fireflame241's user avatar
  • 16.3k
1 vote

Binary expansion and partition numbers

Rust Port of @l4m2's c++ answer in Rust. Try it online! ...
138 Aspen's user avatar
  • 5,991
1 vote

How many partitions do I have?

Picat, 58 bytes f(N)=f(N,N). f(N,K)=cond(N*K<1,0**N**2,f(N-K,K)+f(N,K-1)). Attempt This Online! Uses fireflame241's recurrence with one base case. This example ...
Bubbler's user avatar
  • 76.9k
1 vote

Strict partitions of a positive integer

Vyxal l, 24 bitsv2, 3 bytes Ṅ'Þu Try it Online! Vyxal forever
pacman256's user avatar
  • 4,125
1 vote

Sums of Consecutive Integers

Thunno 2, 10 - 5 = 5 bytes RƑæS=;h'+j Try it online! Port of tybocopperkettle's Vyxal answer. Explanation ...
The Thonnu's user avatar
  • 18.1k

Only top scored, non community-wiki answers of a minimum length are eligible