Does anybody has an idea how to find formula for S(n) defined as:
S(n) = min {k ϵ N; for all partitions A1, A2, ..., An of set A={1,2,...,k} ∃i ∃a, b, c ϵ Ai: a+b=c}
It is obvious that S(1) = 2, S(2) = 5.... But how to define formula for S(n) in general?
This is not an answer, but Brian Scott conjectured in the comments to the question that it was the Catalan numbers. If so, it's probably worthy of inclusion in the list of results on the OEIS page.
Anyway, a simple python script demonstrates the following:
and
which certainly fits Brian Scott's conjecture.
The next one is computationally challenging. I've established that $k>21$, but it will take a while to get to 42. This is a simple, brute-force kind of code. There are probably cleverer ways to do this...
This is after running overnight...