OFFSET
0,2
COMMENTS
All numbers n are repdigit in base 1 and in all bases greater than n, therefore we restrict the sequence to bases between 1 and n exclusively.
LINKS
Giovanni Resta, Table of n, a(n) for n = 0..100
EXAMPLE
a(4) = 24 since 24_10 = 44_5 = 33_7 = 22_11 = 11_23.
MATHEMATICA
rp[n_, b_] := 1 == Length@ Union@ IntegerDigits[n, b]; c[1] = c[2] = 0; c[n_] := c[n] = Block[{q = Floor@Sqrt@n}, 1 + Length@ Select[Range[2, q], rp[n, #] &] + Length@ Select[Divisors[n] - 1, q < # <= n/2 && rp[n, #] &]]; a[n_] := Block[{k = 1}, While[c[k] != n, k++]; k]; Table[a[j], {j, 0, 30}] (* Giovanni Resta, Apr 07 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Jan 02 2002
EXTENSIONS
Edited by John W. Layman, Jan 16 2002
a(0) changed to 1 by Giovanni Resta, Apr 07 2017
STATUS
approved