A325480 a(n) is the largest integer m such that the product of n consecutive integers starting at m is divisible by at most n primes.
16, 24, 24, 45, 48, 49, 120, 120, 125, 189, 240, 240, 350, 350, 350, 350, 374, 494, 494, 714, 714, 714, 714, 825, 832, 1078, 1078, 1078, 1078, 1425, 1440, 1440, 1856, 2175, 2175, 2175, 2175, 2175, 2175, 2175, 2870, 2870, 2870, 2871, 2880, 2880, 2880, 3219
Offset: 3
Keywords
Examples
For example, a(3) = 16 because 16 * 17 * 18 = 2^5 * 3^2 * 17 admits only three prime divisors (2, 3, and 17) and appears to be the largest product of three consecutive integers with the property.
Programs
-
SageMath
for r in range(3, 100): history = [] M = 0 for n in range(1, 100000): primes = {p for p, _ in factor(n)} history.append(primes) history = history[-r:] total = set() for s in history: total |= s # Skip if too many primes. if len(total) > r: continue if n > M: M = n print(r, M-r+1)
Comments