A182273 Starting with 1, smallest integer not having a zero and not yet in the sequence such that two neighboring digits of the sequence multiply to a composite.
1, 4, 2, 3, 5, 6, 7, 8, 9, 14, 16, 18, 19, 22, 23, 24, 25, 26, 27, 28, 29, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 52, 53, 54, 55, 56, 57, 58, 59, 61, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 74, 75, 76, 77, 78, 79, 81, 82, 83, 84
Offset: 1
Links
- Dominic McCarty, Table of n, a(n) for n = 1..10000
Crossrefs
Cf. A182272.
Programs
-
Python
a, z = [1], [1,2,3,5,7] while len(a) < 100: k, s = 2, "2" while (k in a) or ("0" in s) or (a[-1] % 10 * int(s[0]) in z) or \ any(int(s[n]) * int(s[n+1]) in z for n in range(0, len(s)-1)): s, k = str(k+1), k+1 a.append(k) print(a) # Dominic McCarty, Jan 30 2025
Comments