The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A356172 a(n) = 1 if n is odd and not divisible by two consecutive prime numbers, otherwise 0. 5
1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
a(n) = 1 if n is odd and relatively prime to A003961(n), otherwise 0.
a(n) = 1 if n and the smallest positive k such that n divides k*A003961(k) are coprime, otherwise 0.
LINKS
FORMULA
a(n) = A000035(n) * A356173(n).
a(n) = [gcd(n, A356164(n)) == 1], where [ ] is the Iverson bracket.
a(n) = [A356166(n) == 1] = [A356169(n) == 0].
PROG
(PARI)
A003961(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); };
A356172(n) = ((n%2)&&(1==gcd(n, A003961(n))));
(PARI)
\\ Alternatively (slow!):
A356172(n) = for(k=1, oo, if((k*A003961(k))%n==0, return(1==gcd(n, k))));
CROSSREFS
Characteristic function of A356171.
Sequence in context: A014485 A014373 A014317 * A015813 A015901 A016077
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 28 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 18 12:18 EDT 2024. Contains 372630 sequences. (Running on oeis4.)