Srinivasa Ramanujan
Srinivasa Ramanujan is credited with discovering that the partition function has nontrivial patterns in modular arithmetic.