A284295 Numbers n such that product of digits of n is a power of 9.
1, 9, 11, 19, 33, 91, 99, 111, 119, 133, 191, 199, 313, 331, 339, 393, 911, 919, 933, 991, 999, 1111, 1119, 1133, 1191, 1199, 1313, 1331, 1339, 1393, 1911, 1919, 1933, 1991, 1999, 3113, 3131, 3139, 3193, 3311, 3319, 3333, 3391, 3399, 3913, 3931, 3939, 3993
Offset: 1
Examples
1111 is in the sequence because 1*1*1*1 = 1 = 9^0.
Crossrefs
Programs
-
Magma
Set(Sort([n: n in [1..10000], k in [0..20] | &*Intseq(n) eq 9^k]))
-
Mathematica
FromDigits /@ Select[Join @@ Map[Tuples[{1, 3, 9}, #] &, Range@ 4], IntegerQ@ Log[9, Times @@ #] &] (* Michael De Vlieger, Mar 25 2017 *)
Comments