OFFSET
1,1
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
EXAMPLE
a(11) = 14 as 11 has one prime factor (counted with multiplicity) and 14 has 2 prime factors (counted with multiplicity) 14 the smallest number m > 11 such that the number of prime factors of m and 11 differ by 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