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!)
A099618 a(n) = 1 if the n-th prime == 1 mod 6, otherwise a(n) = 0. 4

%I #5 Jun 26 2019 11:05:07

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

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

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

%N a(n) = 1 if the n-th prime == 1 mod 6, otherwise a(n) = 0.

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

%t Table[Mod[Mod[Mod[Mod[Prime[k], 6], 5], 3], 2], {k, 1, 120}]

%o (PARI) a(n) = (prime(n) % 6) == 1; \\ _Michel Marcus_, Jun 26 2019

%Y Cf. A000040, A039704, A091178.

%K nonn

%O 1,1

%A Joseph Biberstine (jrbibers(AT)indiana.edu), Nov 19 2004

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 April 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)