OFFSET
1,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..4735
EXAMPLE
91 belongs since 4914 is a multiple of 91 (91*54).
MATHEMATICA
f[k_, d_] := Flatten@Table[Select[Divisors[k*(10^(i + 1) + 1)], IntegerLength[ # ] == i &], {i, d}]; f[4, 9] (* Ray Chandler, May 11 2007 *)
Select[Range[52000000], Divisible[FromDigits[Join[{4}, IntegerDigits[#], {4}]], #]&] (* Harvey P. Dale, Mar 14 2011 *)
PROG
(Python)
from sympy import isprime
from itertools import count, islice
def agen(): # generator of terms
yield from [1, 2, 4]
for k in count(2):
t = 4*(10**(k+1) + 1)
yield from (t//i for i in range(400, 40, -1) if t%i == 0)
print(list(islice(agen(), 38))) # Michael S. Branicky, Mar 26 2023
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Giovanni Resta, Feb 15 2006
EXTENSIONS
a(36) and beyond from Michael S. Branicky, Mar 26 2023
STATUS
approved