@DaveJensenMath@JSEllenberg Yes I think that formula does it. I think Q(n) can be easily bounded by p(1) + ... + p(n/2) by sending the strict odd partition (2k_i+1) to the partition (k_i) of sum at most n/2. Then p(1) + ... + p(n/2) โค n/2 * p(n/2). Conclude since p(n) is roughly like exp(sqrt(n)).
@littmath Let K be the kernel of R^I' -> H, which is locally free by the finite case. Write R^I = R^I' + R^I''. Then the snake lemma gives 0 -> K -> F -> R^I'' -> 0, so F is locally free.
@littmath Sketch: this is a local question of course, so assume R is local and write G = R^I, H = R^k (k finite, I arbitrary). Pick elements g_1, ..., g_k mapping to the generators of H. Take all basis elements occurring in the g_i's, to get a finite subset I' of I with R^I' -> H onto.
@JSEllenberg At LftCM2022 in July, there was a panel on Lean for Teaching. One of the things he said is: this avoids a common pitfall, where students get manage to brute-force their way through a proof, but can't actually explain the proof afterwards!
@MotivicKyle I guess this amounts to ordering the index set lexicographically, so you could also try doing that. There are only 6 ways to order the (n,k,l) indexing triples lexicographically, so maybe you'll find your complete sequence.
@MotivicKyle OEIS contains many triangular-shaped sequences (listed by rows or columns). I don't know about 3D triangular arrays, but to look for complete 2D slices, you can try searching for strings of nontrivial values with two arguments fixed and one varying.