OFFSET
1,1
COMMENTS
For every 3-digit number, such a 4-digit number is guaranteed to exist - in a range of ten consecutive numbers, at least one of them must be divisible by 7. Since this is not true for 11 and greater, the number of eligible numbers goes down dramatically. 8757193191 and 6300846559 are the only 10-digit numbers to satisfy the requirements.
EXAMPLE
There are four one-digit numbers divisible by 2 (the even, nonzero numbers), so a(1) = 4.
For n = 2, the number must start with an even, nonzero digit and the second digit must make it divisible by 3, which gives 13 numbers: 21, 24, 27, 42, 45, 48, 60, 63, 66, 69, 81, 84 and 87. Appending a 0 or 5 to the end of any of these satisfies for a(3), so the count doubles to 26.
CROSSREFS
KEYWORD
base,easy,fini,full,nonn
AUTHOR
Ellis M. Eisen (xerol(AT)xerol.org), Sep 04 2008
STATUS
approved