A080503 a(n) = A080502(n)/n.
1, 5, 34, 253, 2024
Offset: 1
This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
a(1) = 11/1 = 11; a(15) = 105/15 = 7; a(18) = 108/18 = 6.
def issub(s1, s2, i1, i2): if i1 == 0: return True if i2 == 0: return False if s1[i1-1] == s2[i2-1]: return issub(s1, s2, i1-1, i2-1) return issub(s1, s2, i1, i2-1) def a(n): k, kn, tenn, s, sk = 2, 2*n, 10*n, str(n), str(2*n) while kn == tenn or not issub(s, str(kn), len(s), len(sk)): kn += n; sk = str(kn) return kn//n print([a(n) for n in range(1, 76)]) # Michael S. Branicky, Nov 06 2021