Find the smallest number with the property that when it is divided by each of the numbers 2 to 10, the remainder is always one less than the number it is has been divided by.