(This question comes from a friend who works in sofic group theory.)
Consider the function $f: \mathbb{N} \to \mathbb{N}$, defined, for any $n \in \mathbb{N}$, by putting $f(n)$ to be the largest cardinal of a finite group which has at least one presentation of length at most $n$ (I think any "natural" definition of length works.)
Is $f$ computable? If yes, is there a simple description of it? If not, is it "equivalent" to the busy beaver function or is it of higher growth?