OFFSET
2,1
LINKS
FORMULA
For even bases n > 4, the formula is a(n) := 2*n^(n-3) - 4*n^(n-4) + 1. No closed form is known for odd n.
EXAMPLE
a(2)=5 because we first add 01 to the pile and then take 0 to make the integer 0. Next, we add another 01 to the pile (making it 011) and take the digit 1 to make the integer 1. Next we add 01 and take 10. Next we add 01 and take 11 (now the pile is just 00). Next we add 01 and take 100 (leaving just 0). Finally, we add 01 and now the pile is 001 but we need to form the number 101. So 101 (base 2) = 5 (base 10) is the first integer that cannot be formed.
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Michael Brundage, Apr 24 2004
STATUS
approved