OFFSET
1,1
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
Rémy Sigrist, PARI program for A328291
FORMULA
PROG
(PARI) \\ See Links section.
(Python)
from __future__ import division
def A328291(n):
if n > 9876543210 or n % 100 == 0:
return 0
k = 9876543210//n
m = k*n
s = str(m)
while len(set(s)) != len(s):
k -= 1
m -= n
s = str(m)
return k # Chai Wah Wu, Oct 13 2019
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Rémy Sigrist, Oct 11 2019.
EXTENSIONS
Formula corrected and program amended by Rémy Sigrist, Oct 14 2019
STATUS
approved