OFFSET
0,4
EXAMPLE
a(46) = 10 since 46 written in base 3 is 1201 (i.e. with the smallest and fourth smallest disks on the first peg, the third smallest disk on the second peg and the second smallest and any other disks on the zeroth peg) and the optimal moves starting from position 0 go through positions 2, 12, 11, 211, 210, 220, 222, 1222, 1220, 1210 taking ten moves.
CROSSREFS
KEYWORD
base,nice,nonn
AUTHOR
Henry Bottomley, Apr 04 2001
STATUS
approved