[go: up one dir, main page]

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!)
Revision History for A100672 (Underlined text is an addition; strikethrough text is a deletion.)

Showing entries 1-10 | older changes
A100672 Second least-significant bit in the binary expansion of the n-th prime.
(history; published version)
#39 by Alois P. Heinz at Tue Jul 16 17:03:27 EDT 2024
STATUS

editing

approved

#38 by Alois P. Heinz at Tue Jul 16 17:03:15 EDT 2024
FORMULA

a(n) = floor(prime(n)/2) mod 2.. - _Alois P. Heinz_, Jul 16 2024

Discussion
Tue Jul 16 17:03
Alois P. Heinz: trivial ...
#37 by Alois P. Heinz at Tue Jul 16 17:02:20 EDT 2024
FORMULA

a(n) = floor(prime(n)/2) mod 2.

CROSSREFS

Cf. A000040, A045326, A002144, A002145.

STATUS

approved

editing

#36 by Alois P. Heinz at Tue Jul 16 16:56:22 EDT 2024
STATUS

editing

approved

#35 by Alois P. Heinz at Tue Jul 16 16:51:58 EDT 2024
FORMULA

a(n) = ((prime(n)-2) mod 4) mod 3 (Conjectured). - Gary Detlefs, Dec 06 2011

MAPLE

seq(((ithprime(n)-2) mod 4) mod 3, n= 1 ..300); # Gary Detlefs, Dec 06 2011

STATUS

approved

editing

Discussion
Tue Jul 16 16:52
Alois P. Heinz: not correct ... not programs for conjectured formulas ...
#34 by Alois P. Heinz at Fri Jun 23 10:17:56 EDT 2023
STATUS

proposed

approved

#33 by Chai Wah Wu at Fri Jun 23 09:47:49 EDT 2023
STATUS

editing

proposed

#32 by Chai Wah Wu at Fri Jun 23 09:47:43 EDT 2023
PROG

def A100672(n): return int(n==1 or prime(n)&3==3)>>1&1) # Chai Wah Wu, Jun 23 2023

STATUS

proposed

editing

#31 by Chai Wah Wu at Fri Jun 23 09:45:06 EDT 2023
STATUS

editing

proposed

#30 by Chai Wah Wu at Fri Jun 23 09:44:57 EDT 2023
PROG

(Python)

from sympy import prime

def A100672(n): return int(n==1 or prime(n)&3==3) # Chai Wah Wu, Jun 23 2023

STATUS

approved

editing

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 August 30 00:57 EDT 2024. Contains 375520 sequences. (Running on oeis4.)