login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

The characteristic function of primes > 3: 1 if n is prime such that neither prime+-1 is prime else 0.
2

%I #7 Oct 04 2017 14:03:27

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

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

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

%N The characteristic function of primes > 3: 1 if n is prime such that neither prime+-1 is prime else 0.

%H Antti Karttunen, <a href="/A171387/b171387.txt">Table of n, a(n) for n = 1..1001</a>

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

%F A010051(n) = a(n) + A171386(n).

%F If n > 3, a(n) = A010051(n), otherwise a(n) = 0. - _Antti Karttunen_, Oct 04 2017

%Y Cf. A000007, A010051, A063524, A080545, A169546, A171386.

%K nonn

%O 1,1

%A _Juri-Stepan Gerasimov_, Dec 07 2009