OFFSET
1,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..6573
EXAMPLE
39 belongs to the sequence since 6396 is a multiple of 39 (39*164).
MATHEMATICA
f[k_, d_] := Flatten@Table[Select[Divisors[k*(10^(i + 1) + 1)], IntegerLength[ # ] == i &], {i, d}]; f[6, 8] (* Ray Chandler, May 11 2007 *)
Select[Range[23000000], Divisible[FromDigits[Join[{6}, IntegerDigits[#], {6}]], #]&] (* Harvey P. Dale, Jan 12 2011 *)
PROG
(Python)
from sympy import isprime
from itertools import count, islice
def agen(): # generator of terms
yield from [1, 2, 3, 6]
for k in count(2):
t = 6*(10**(k+1) + 1)
yield from (t//i for i in range(600, 60, -1) if t%i == 0)
print(list(islice(agen(), 42))) # Michael S. Branicky, Mar 26 2023
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Giovanni Resta, Feb 15 2006
EXTENSIONS
a(40) and beyond from Michael S. Branicky, Mar 26 2023
STATUS
approved