OFFSET
1,1
EXAMPLE
a(31) = 4000 since both 4000 and 4000 - 31 = 3969 are 7-smooth numbers, and there is conjectured no number k larger than 4000 such that both k and k - 31 are 7-smooth numbers.
PROG
(PARI)
M(v, u, lim)={vecsort(concat(vector(#v, i, my(m=lim\v[i]); v[i]*select(t->t<=m, u))))}
Gen(lim, k)={my(v=[1]); forprime(p=2, k, v=M(v, vector(logint(lim, p)+1, e, p^(e-1)), lim)); v}
lista(n, lim=10^30)={my(v=vector(n), G=Gen(lim, 7)); for(i=1, #G, my(t=G[i], k=i+1); while(k<=#G && G[k]-t<=n, v[G[k]-t]=G[k]; k++)); v} \\ Andrew Howroyd, Oct 11 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhicheng Wei, Oct 10 2024
EXTENSIONS
a(23) onwards from Andrew Howroyd, Oct 11 2024
Running Andrew Howroyd's PARI program with limit=10^100 does not change the terms in DATA. - Hugo Pfoertner, Oct 13 2024
STATUS
approved