OFFSET
2,29
LINKS
Antti Karttunen, Table of n, a(n) for n = 2..100000
EXAMPLE
For n = 6 = 2*3, A007814(6-1) = 0, A007814(2-1) = 0 and A007814(3-1) = 1, therefore there is one prime factor (3) which satisfies the condition, and a(6) = 1.
MATHEMATICA
a[n_] := Module[{v = IntegerExponent[n - 1, 2]}, Count[FactorInteger[n][[;; , 1]], _?(IntegerExponent[# - 1, 2] > v &)]]; Array[a, 100, 2] (* Amiram Eldar, Feb 10 2023 *)
PROG
(PARI) A360115(n) = { my(f=factor(n), v=valuation(n-1, 2)); sum(i=1, #f~, (v < valuation(f[i, 1]-1, 2))); };
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 10 2023
STATUS
approved