OFFSET
1,1
LINKS
Daniel Suteu, Table of n, a(n) for n = 1..9503 (terms <= 10^15)
Jean-Marie De Koninck and Matthieu Moineau, Consecutive Integers Divisible by a Power of their Largest Prime Factor, J. Integer Seq., Vol. 21 (2018), Article 18.9.3.
EXAMPLE
242 = 2 * 11^2 is a term since P(242) = 11 and 11^2 | 242, 243 = 3^5, P(243) = 3, and 3^3 | 243.
MATHEMATICA
p[n_] := FactorInteger[n][[-1, 2]]; Select[Range[10^6], p[#] > 1 && p[# + 1] > 2 &]
PROG
(Python)
from sympy import factorint
def c(n, e): f = factorint(n); return f[max(f)] >= e
def ok(n): return n > 1 and c(n, 2) and c(n+1, 3)
print([k for k in range(10**6) if ok(k)]) # Michael S. Branicky, May 30 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, May 30 2022
STATUS
approved