hahaha it was wrong when i did it. but anyway, i once took a math course that taught nothing but weird word problems and how to solve them and how they break down and work.
we learned a lot about patterns, sequences etc and we even learned one similar to this and actually broke down the algebriac equation that makes this work. its kinda cool although i dont remember it now. this was when i was a freshmen in college :O