OFFSET
1,2
COMMENTS
EXAMPLE
73 is in this sequence since 73 + 1 = 37*2, where 37 is an anagram of 73.
MATHEMATICA
{1}~Join~Select[Range[100000], ContainsAny[IntegerDigits/@Divisors[#+1], Complement[Permutations[IntegerDigits[#]], {IntegerDigits[#]}]]&] (* James C. McMahon, Jun 10 2025 *)
PROG
(Python)
def ok(k):
return any((k+1)%d==0 and sorted(str(d))==sorted(str(k)) and len(str(d))==len(str(k)) for d in range(1, k+2))
print(", ".join(map(str, [k for k in range(1, 100000) if ok(k)])))
(PARI) isok(k) = my(s=vecsort(digits(k))); fordiv(k+1, d, if (vecsort(digits(d)) == s, return(1))); \\ Michel Marcus, Jun 04 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Gonzalo MartÃnez, Jun 04 2025
STATUS
approved
