|
|
A116442
|
|
Numbers n which when sandwiched between two 7's give a multiple of n.
|
|
9
|
|
|
1, 7, 11, 13, 49, 77, 91, 137, 511, 959, 9091, 69307, 909091, 5882353, 10989011, 12987013, 28340081, 33492823, 48951049, 52631579, 76923077, 90909091, 693069307, 2766798419, 4347826087, 5785123967, 9090909091, 13698630137, 51094890511, 95890410959, 909090909091
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
EXAMPLE
|
511 belongs since 75117 is a multiple 511 (511*147).
|
|
MATHEMATICA
|
f[k_, d_] := Flatten@Table[Select[Divisors[k*(10^(i + 1) + 1)], IntegerLength[ # ] == i &], {i, d}]; f[7, 11] (* Ray Chandler, May 11 2007 *)
|
|
PROG
|
(Python)
from sympy import isprime
from itertools import count, islice
def agen(): # generator of terms
yield from [1, 7]
for k in count(2):
t = 7*(10**(k+1) + 1)
yield from (t//i for i in range(700, 70, -1) if t%i == 0)
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|