The OEIS is supported by the many generous donors to the OEIS Foundation.

 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 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”). Other ways to Give
 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A344856 Bitwise XOR of prime(n) and n^2. 1
 3, 7, 12, 23, 18, 41, 32, 83, 70, 121, 102, 181, 128, 239, 206, 309, 282, 377, 298, 471, 496, 427, 578, 537, 528, 705, 702, 891, 804, 1013, 958, 1155, 1224, 1039, 1116, 1415, 1476, 1287, 1366, 1773, 1570, 1617, 1926, 1873, 1836, 2179, 2162, 2527, 2434, 2337 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 COMMENTS This is effectively the bitwise XOR of A000040 and A000290. LINKS Chai Wah Wu, Table of n, a(n) for n = 1..10000 Chris von Csefalvay, Bitwise prime-square sequences ("Jellyfish Hearts"). Wikipedia, Bitwise operation FORMULA a(n) = prime(n) XOR n^2. a(n) = A003987(A000040(n), A000290(n)). EXAMPLE For n=3, a(3) is prime(3) XOR 3^2 = 5 XOR 9 or b(0101) XOR b(1001) = (b)1100, which in base 10 is 12. MAPLE a:= n-> Bits[Xor](n^2, ithprime(n)): seq(a(n), n=1..50); # Alois P. Heinz, May 30 2021 MATHEMATICA a[n_] := BitXor[n^2, Prime[n]]; Array[a, 50] (* Amiram Eldar, Jun 05 2021 *) PROG (Python) from sympy import primerange, prime import numpy def a_vector(n): primes = list(primerange(0, prime(n))) squares = [x ** 2 for x in range(1, n)] return numpy.bitwise_xor(primes, squares) (PARI) A344856(n) = bitxor(prime(n), n*n); \\ Antti Karttunen, Jun 05 2021 (Python) from sympy import prime def A344856(n): return prime(n) ^ n**2 # Chai Wah Wu, Jun 12 2021 CROSSREFS Cf. A000040, A000290, A003987, A070883, A169810. Sequence in context: A256483 A337946 A345433 * A262567 A226229 A167491 Adjacent sequences: A344853 A344854 A344855 * A344857 A344858 A344859 KEYWORD nonn,base AUTHOR Chris von Csefalvay, May 30 2021 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.

Last modified November 26 20:27 EST 2022. Contains 358362 sequences. (Running on oeis4.)