welcome. ..holy cow!!! ....4000 rpm?...rim size has no effect on rpms....you need to know 4th grear in trans ratio, rear axle ratio, and tire diameter....you can plug numbers into calculator like this to find what you need for a axle ratio to get your rpms down....
http://www.csgnetwork.com/multirpmcalc.html