>>652
Correction
n-1<x<=n