OFFSET
1,1
COMMENTS
The first four members use all the digits 1-9 exactly once. They form the sequence A115929.
EXAMPLE
3942 and 3942*4=15768 use once all the digits from 1 to 9.
11738 and 11738*4=46952 use all the digits from 1 to 9 with repetitions.
MAPLE
q:= n-> (s-> is({seq(parse(s[i]), i=1..length(s))}={$1..9}))(cat("", n, 4*n)):
select(q, [$1..22000])[]; # Alois P. Heinz, Jul 05 2021
MATHEMATICA
Select[Range[1000, 99999], Union[IntegerDigits[#], IntegerDigits[4 #]] == {1, 2, 3, 4, 5, 6, 7, 8, 9} &]
PROG
(Python)
def ok(n): return (set(str(n)) | set(str(4*n))) == set("123456789")
print(list(filter(ok, range(21440)))) # Michael S. Branicky, Jul 05 2021
(PARI) isok(k) = my(s=setunion(Set(digits(k)), Set(digits(4*k)))); vecmin(s) && (#s == 9); \\ Michel Marcus, Jul 11 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Tanya Khovanova, Jul 05 2021
STATUS
approved