login
a(n) = 1 if {the least k >= n such that n and A276086(k) are coprime} is one of the primorial numbers (A002110), otherwise 0.
4

%I #8 Nov 04 2022 19:25:29

%S 0,1,1,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,1,0,0,1,0,0,0,

%T 0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,

%U 0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1

%N a(n) = 1 if {the least k >= n such that n and A276086(k) are coprime} is one of the primorial numbers (A002110), otherwise 0.

%H Antti Karttunen, <a href="/A356313/b356313.txt">Table of n, a(n) for n = 0..65537</a>

%H <a href="/index/Ch#char_fns">Index entries for characteristic functions</a>

%H <a href="/index/Pri#primorialbase">Index entries for sequences related to primorial base</a>

%o (PARI)

%o \\ Needs also code from A356302.

%o A356309(n) = (n+A356302(n));

%o isA002110(n) = if(n<=1,n,my(f=factor(n), o=omega(n)); (bigomega(n)==o)&&(primepi(f[o,1])==o));

%o A356313(n) = isA002110(A356309(n));

%Y Characteristic function of A356314.

%Y Cf. A002110, A276086, A356302, A356309.

%K nonn

%O 0

%A _Antti Karttunen_, Nov 04 2022