[go: up one dir, main page]

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!)
A175516 a(n) = smallest positive even integer k such that k or one of its left substrings is divisible by any integer from {1..n}. 2
2, 2, 6, 12, 60, 60, 252, 504, 504, 504, 7260, 7260, 10296, 11760, 11760, 11760, 56160, 56160, 198016, 198016, 1176480, 1323008, 2992500, 6240366, 13442580, 13442580, 37536408, 37536408, 90725804, 90725804, 319800096, 319800096, 319800096, 800640126, 2201169600, 2201169600, 4656965040, 5250966084, 5250966084 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Hugo van der Sanden, A169858: C source code to calculate terms (has an option to compute A175516).
PROG
(Python)
from itertools import count, islice
def agen(): # generator of terms
n = 1
for k in count(2, 2):
s = str(k)
prefixes = [int(s[:i+1]) for i in range(len(s))]
if all(any(ki%m == 0 for ki in prefixes) for m in range(3, n+1)):
yield k; n += 1
while any(ki%n == 0 for ki in prefixes):
yield k; n += 1
print(list(islice(agen(), 20))) # Michael S. Branicky, Jun 09 2023
CROSSREFS
Cf. A169858.
Sequence in context: A103872 A216641 A191970 * A244656 A159322 A049313
KEYWORD
base,nonn
AUTHOR
Zak Seidov, Jun 03 2010
EXTENSIONS
Corrected and extended by Hugo van der Sanden, Jun 01 2010
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 August 30 19:33 EDT 2024. Contains 375545 sequences. (Running on oeis4.)