RPI solutions

RPI was solved using MATLAB by 3 contestants. Solution sizes: average 1379 bytes (shortest: 579; longest: 1960).