OFFSET
2
LINKS
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
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 10 2023
STATUS
approved