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!)
A175329 a(n) = bitwise OR of prime(n) and prime(n+1). 4
3, 7, 7, 15, 15, 29, 19, 23, 31, 31, 63, 45, 43, 47, 63, 63, 63, 127, 71, 79, 79, 95, 91, 121, 101, 103, 111, 111, 125, 127, 255, 139, 139, 159, 151, 159, 191, 167, 175, 191, 183, 191, 255, 197, 199, 215, 223, 255, 231, 237, 239, 255, 251, 507, 263, 271, 271, 287 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Read each binary representation of the primes from right to left and then OR respective digits to form the binary equivalent of each term of this sequence.
LINKS
MAPLE
read("transforms") ; A175329 := proc(n) ORnos(ithprime(n), ithprime(n+1)) ; end proc: seq(A175329(n), n=1..60) ; # R. J. Mathar, Apr 15 2010
# second Maple program:
a:= n-> Bits[Or](ithprime(n), ithprime(n+1)):
seq(a(n), n=1..70); # Alois P. Heinz, Apr 16 2020
MATHEMATICA
A175329[n_]:=BitOr[Prime[n], Prime[n+1]]; Array[A175329, 100] (* Paolo Xausa, Oct 13 2023 *)
BitOr@@#&/@Partition[Prime[Range[60]], 2, 1] (* Harvey P. Dale, Mar 01 2024 *)
PROG
(PARI) a(n) = bitor(prime(n), prime(n+1)); \\ Michel Marcus, Apr 20 2020
CROSSREFS
Cf. A000040, A175330 (bitwise AND).
Cf. A086799 (bitwise OR of n and n-1)).
Sequence in context: A118259 A060845 A059478 * A081218 A240422 A130003
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Apr 07 2010
EXTENSIONS
More terms from R. J. Mathar, Apr 15 2010
STATUS
approved

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 09:23 EDT 2024. Contains 371782 sequences. (Running on oeis4.)