cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A323783 a(n) = A134028(A323782(n)): Primes and negated primes such that the reverse of the balanced ternary representation is a prime.

This page as a plain text file.
%I A323783 #31 Jan 01 2025 22:31:01
%S A323783 -2,-11,7,-5,13,-29,-17,37,31,43,-83,-101,61,-89,73,-53,-71,-59,103,
%T A323783 -173,313,-353,241,-137,-263,223,331,277,181,-269,163,-179,-233,199,
%U A323783 -347,139,193,-311,-149,367,853,691,-929,-443,-983,421,-389,-839,457,-677
%N A323783 a(n) = A134028(A323782(n)): Primes and negated primes such that the reverse of the balanced ternary representation is a prime.
%C A323783 The "warp" operation is reversible between A323782 and this sequence.
%C A323783 Negating a number in balanced ternary notation is done by inverting the + and -.
%H A323783 Github, <a href="https://github.com/sneakyweasel/WarpPrimes">Python code repository</a>
%H A323783 Rosetta Code, <a href="http://www.rosettacode.org/wiki/Balanced_ternary">Balanced Ternary Code</a>
%H A323783 Wikipedia, <a href="https://en.wikipedia.org/wiki/Balanced_ternary">Balanced Ternary</a>
%e A323783 -17 is a term:
%e A323783 -17 is -+0+ in balanced ternary notation
%e A323783 -+0+ reversed is +0+-
%e A323783 +0+- is 29 in balanced ternary notation
%e A323783 29 is prime
%e A323783 Therefore -17 is "warped" to 29.
%e A323783 This operation is reversible: 29 "warps" to -17.
%o A323783 (Python) # See Github link.
%o A323783 (PARI) d3(n) = if ((n%3)==2, n\3+1, n\3);
%o A323783 m3(n) = if ((n%3)==2, -1, n % 3);
%o A323783 t(n) = if (n==0, [0], if (abs(n) == 1, [n], concat(m3(n), t(d3(n)))));
%o A323783 f(n) = subst(Pol(Vec(t(n))), x, 3);
%o A323783 lista(nn) = {forprime(n=1, nn, if (isprime(abs(f(n))), print1(f(n), ", ")););} \\ _Michel Marcus_, Jan 29 2019
%Y A323783 Corresponding warp prime numbers to A323782.
%Y A323783 Supersequence of A224502.
%K A323783 sign,base
%O A323783 1,1
%A A323783 _Philippe Cochin_, Jan 27 2019