OFFSET
1,1
COMMENTS
The bound a(i) > 6 is motivated by the fact that 1, 2, 4 and 6 are Niven numbers in every base.
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..54
EXAMPLE
a(8) = 24 because 24 is the smallest k > 6 which is Niven in bases 1 (trivial), 2,..., 8. For example, 24 = (33)_7 = (44)_5 = (220)_3.
MATHEMATICA
a[n_] := Block[{k=7}, n > 1 && While[ Max@ Mod[k, Total /@ IntegerDigits[k, Range[2, n]]] > 0, k++]; k]; Array[a, 20]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Giovanni Resta, Jun 03 2013
STATUS
approved