OFFSET
1,1
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
EXAMPLE
a(11) = 13 as 11 has one prime factor (counted with multiplicity) and 13 has 1 prime factor (counted with multiplicity), 13 the smallest number m > 11 such that the number of prime factors of m and 11 differ by at most 1. - David A. Corneth, Feb 23 2024
PROG
(PARI)
a(n) = {
my(b = bigomega(n));
for(i = n + 1, oo,
if(abs(bigomega(i)-b) <= 1,
return(i)
)
)
} \\ David A. Corneth, Feb 23 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, May 15 2002
STATUS
approved