This one is similar to the one that cheer99 posted a while ago in that you could manufacture a solution to fit the problem, because it is still a sequence, just a bit more complicated. If you did that, it probably wouldn't work, though.
I think MathIsFun is along the right lines and just needs to tweak his solution a bit, but I don't know.
Incidentally, it is also similar to the other one because it has been taken off neopets!
(Not a complaint, not trying to be witty, don't tell me off Zach... oh no wait, do!)