OFFSET
2,2
EXAMPLE
In base 5 in 1,2,..,142_5 = 47, digit 1 occurs 43 times, 2 occurs 20, 3 occurs 19 times, 4 occurs 17 times, and 0 occurs 14.
PROG
(Python)
def different(d):
for i in range(len(d)):
for j in range(i):
if d[i] == d[j]:
return False
return True
def a(base):
d = [0] * base
n = 0
while True:
n += 1
m = n
while m > 0:
d[m % base] += 1
m //= base
if different(d):
break
return n
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Jan Fricke, Dec 15 2008
EXTENSIONS
Edited by Franklin T. Adams-Watters, Sep 11 2011
a(16)-a(19) from Michael S. Branicky, Mar 26 2022
STATUS
approved