OFFSET
1,1
EXAMPLE
a(1) = 11/1 = 11; a(15) = 105/15 = 7; a(18) = 108/18 = 6.
PROG
(Python)
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
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Mar 19 2003
EXTENSIONS
Corrected and extended by Ray Chandler, Oct 11 2003
STATUS
approved