OFFSET
1,1
COMMENTS
It appears that A113118 and this sequence agree except for the 5th term.
EXAMPLE
The primes <= a(5) = 15 are 2, 3, 5, 7, 11 and 13. So a(6) is the smallest integer >15 such that each prime <= 15 divides at least one integer between 16 and a(6). Setting a(6) to 26 = 2*13 satisfies the conditions. (2 divides 16. 3 divides 18. 5 divides 20. 7 divides 21. 11 divides 22. And 13 divides 26.)
PROG
(PARI) {m=21; print1(a=2, ", "); for(n=2, m, nxt=a+1; forprime(p=1, a, k=a+1; while(k%p>0, k++); nxt=max(nxt, k)); print1(a=nxt, ", "))} \\ Klaus Brockhaus, Jan 07 2006
(Python)
from sage.all import primes
n, a = 1, 2
data = ""
while True:
print(n, a)
data += str(a) + ", "
if len(data) > 262: print(data[:-2]); break
n += 1
a = max((a//p) * p + p for p in list(primes(a+1)))
# Lucas A. Brown, Feb 22 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jan 03 2006
EXTENSIONS
a(8)-a(21) from Klaus Brockhaus, Jan 07 2006
a(22)-a(35) from Lucas A. Brown, Feb 22 2024
STATUS
approved