login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A116438 Numbers k which when sandwiched between two 3's give a multiple of k. 9
1, 3, 11, 13, 21, 33, 39, 77, 91, 137, 219, 411, 9091, 29703, 909091, 5882353, 10989011, 12145749, 12987013, 14354067, 20979021, 22556391, 32967033, 38961039, 52631579, 76923077, 90909091, 297029703, 1185770751, 2479338843, 4347826087, 9090909091, 13698630137 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
219 belongs since 32193 is a multiple of 219 (219*147).
MATHEMATICA
f[k_, d_] := Flatten@Table[Select[Divisors[k*(10^(i + 1) + 1)], IntegerLength[ # ] == i &], {i, d}]; f[3, 10] (* Ray Chandler, May 11 2007 *)
PROG
(Python)
from sympy import isprime
from itertools import count, islice
def agen(): # generator of terms
yield from [1, 3]
for k in count(2):
t = 3*(10**(k+1) + 1)
yield from (t//i for i in range(300, 30, -1) if t%i == 0)
print(list(islice(agen(), 33))) # Michael S. Branicky, Mar 26 2023
CROSSREFS
Sequence in context: A167612 A299974 A262433 * A191078 A281816 A117682
KEYWORD
base,nonn
AUTHOR
Giovanni Resta, Feb 15 2006
EXTENSIONS
a(31) and beyond from Michael S. Branicky, Mar 26 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 03:11 EDT 2024. Contains 371782 sequences. (Running on oeis4.)