The partition function and arithmetic of certain modular L-functions