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!)
A185709 Characteristic function of positive numbers that are primes ending in 9. 7

%I #16 Dec 06 2017 20:08:33

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

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

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

%N Characteristic function of positive numbers that are primes ending in 9.

%H Antti Karttunen, <a href="/A185709/b185709.txt">Table of n, a(n) for n = 1..65539</a>

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

%t Table[If[PrimeQ[n]&&Mod[n,10]==9,1,0],{n,120}] (* _Harvey P. Dale_, Oct 22 2017 *)

%o (Scheme) (define (A185709 n) (if (= 9 (modulo n 10)) (A010051 n) 0)) ;; _Antti Karttunen_, Dec 06 2017

%Y Characteristic function of A030433.

%Y Cf. A010051.

%K base,nonn

%O 1

%A _N. J. A. Sloane_, Feb 10 2011

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 September 5 05:06 EDT 2024. Contains 375686 sequences. (Running on oeis4.)