OFFSET
1,1
COMMENTS
I call n a "k-nadir" (or nadir of depth k) of the arithmetical function f if n satisfies f(n-k) > ... > f(n-1) > f(n) < f(n+1) < ... < f(n+k).
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
Omega[n_] := Apply[Plus, Transpose[FactorInteger[n]][[2]]]; Select[Range[5, 10^6], Omega[ # - 3] > Omega[ # - 2] > Omega[ # - 1] > Omega[ # ] < Omega[ # + 1] < Omega[ # + 2] < Omega[ # + 3] &]
PROG
(Magma) f:=func<n|&+[p[2]: p in Factorization(n)]>; f1:=func<n| f(n-3) gt f(n-2) and f(n-2) gt f(n-1) and f(n-1) gt f(n) >; f2:=func<n| f(n+3) gt f(n+2) and f(n+2) gt f(n+1) and f(n+1) gt f(n) >; [k:k in [5..960000]| f1(k) and f2(k)]; // Marius A. Burtea, Feb 19 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Nov 14 2002
STATUS
approved