cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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}.

Original entry on oeis.org

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
Offset: 1

Views

Author

Zak Seidov, Jun 03 2010

Keywords

Crossrefs

Cf. A169858.

Programs

  • 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

Extensions

Corrected and extended by Hugo van der Sanden, Jun 01 2010