OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..100
MATHEMATICA
f[p_, e_] := If[e < 3, p^e, p^e - p^(e - 3)]; s[n_] := Times @@ f @@@ FactorInteger[n]; Select[Range[10^6], s[#] == s[# + 1] &]
PROG
(Python)
from math import prod
from itertools import count, islice
from sympy import factorint
def A349309_gen(startvalue=1): # generator of terms >= startvalue
a = prod(p**e - (p**(e-3) if e >= 3 else 0) for p, e in factorint(max(startvalue, 1)).items())
for k in count(max(startvalue, 1)):
b = prod(p**e - (p**(e-3) if e >= 3 else 0) for p, e in factorint(k+1).items())
if a == b:
yield k
a = b
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Nov 14 2021
STATUS
approved