MathDB
usamo '90

Source:

June 15, 2005
AMCUSA(J)MOUSAMOfunctioncombinatorics proposedcombinatorics

Problem Statement

Find, with proof, the number of positive integers whose base-nn representation consists of distinct digits with the property that, except for the leftmost digit, every digit differs by ±1\pm 1 from some digit further to the left. (Your answer should be an explicit function of nn in simplest form.)