login
A360115
Number of prime factors p of n for which the 2-adic valuation of p-1 is greater than that of n-1.
2
0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 2, 0, 1, 0, 0, 0, 2, 0, 1, 0, 2, 0, 1, 0, 1, 1, 1, 0, 2, 0, 1, 0, 1, 0, 2, 1, 1, 1, 1, 0, 2, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 2, 1, 1, 0, 2, 1, 1, 0, 1, 1, 2, 0
OFFSET
2,29
LINKS
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.
For n = 85 = 5*17, A007814(85-1) = 2, A007814(5-1) = 2 and A007814(17-1) = 4, therefore there is one prime factor (17) which satisfies the condition, and a(85) = 1.
For n = 195 = 3*5*13, A007814(195-1) = 1, A007814(3-1) = 1, A007814(5-1) = A007814(13-1) = 2, therefore there are two prime factors (5 and 13) that satisfy the condition, and a(195) = 2.
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
Cf. A360116, A360117 (positions of 0's).
Sequence in context: A228601 A363856 A369354 * A341025 A364044 A269247
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 10 2023
STATUS
approved