OFFSET
1,2
EXAMPLE
For n = 5, the first, 2nd, 7th and 18th permutations base 5 {01234, 01243, 02134, 03421} = decimal {194, 198, 294, 486} are divisible by 1,2,7 and 18 respectively. a(5) = 4.
CROSSREFS
KEYWORD
nonn
AUTHOR
David Scambler, Nov 02 2006
EXTENSIONS
a(13) from Alois P. Heinz, May 05 2012
STATUS
approved