OFFSET
1,3
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
EXAMPLE
Product of digits of 26 is 12 (2*6=12); "26" and "12" share the digit "2".
MATHEMATICA
Select[Range[0, 116], Length[Intersection[IntegerDigits[#], IntegerDigits[Apply[Times, IntegerDigits[#]]]]]>0&] (* James C. McMahon, Feb 25 2024 *)
PROG
(Python)
from math import prod
def ok(n): return set(s:=str(n)) & set(str(prod(map(int, s)))) != set()
print([k for k in range(117) if ok(k)]) # Michael S. Branicky, Feb 25 2024
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Jun 15 2005
STATUS
approved