OFFSET
0,3
COMMENTS
For n >= 2, a(n) is the number of numbers in base n with consecutive digits after reordering.
a(10) = 4091130 is also the number of positive terms in the finite sequence A215014, hence a(10) + 1 = 4091131 is the total number of terms in that sequence.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..450
MAPLE
a:= proc(n) option remember; `if`(n<3, n*(n-1),
n*(a(n-1)*n/(n-1)-a(n-2)*(n-1)/(n-2)))
end:
seq(a(n), n=0..25); # Alois P. Heinz, Jun 16 2017
MATHEMATICA
{0}~Join~Map[Total, Table[(n - k + 1) k! - (k - 1)!, {n, 22}, {k, n}]] (* Michael De Vlieger, Jun 21 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Jun 15 2017
EXTENSIONS
More terms from Alois P. Heinz, Jun 16 2017
STATUS
approved