login
A360116
a(n) = 1 if there are no prime factors p of n for which the 2-adic valuation of p-1 is less than that of n-1, otherwise 0.
4
1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1
OFFSET
2
COMMENTS
a(n) = 1 if for all prime factors p of n A007814(p-1) >= A007814(n-1), otherwise 0.
FORMULA
a(n) = [A360115(n) = 0], where [ ] is the Iverson bracket.
MATHEMATICA
a[n_] := Module[{v = IntegerExponent[n - 1, 2]}, If[AllTrue[FactorInteger[n][[;; , 1]], IntegerExponent[# - 1, 2] <= v &], 1, 0]]; Array[a, 100, 2] (* Amiram Eldar, Feb 10 2023 *)
PROG
(PARI) A360116(n) = { my(f=factor(n), v=valuation(n-1, 2)); !sum(i=1, #f~, (v < valuation(f[i, 1]-1, 2))); };
CROSSREFS
Characteristic function of A360117.
Sequence in context: A239681 A054524 A110471 * A255339 A174854 A103994
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 10 2023
STATUS
approved