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.

A171043 In the sequence of prime numbers, replace all the '8' digits with '2' and vice versa.

This page as a plain text file.
%I A171043 #15 Mar 31 2017 00:53:53
%S A171043 8,3,5,7,11,13,17,19,83,89,31,37,41,43,47,53,59,61,67,71,73,79,23,29,
%T A171043 97,101,103,107,109,113,187,131,137,139,149,151,157,163,167,173,179,
%U A171043 121,191,193,197,199,811,883,887,889,833,839,841,851,857,863
%N A171043 In the sequence of prime numbers, replace all the '8' digits with '2' and vice versa.
%H A171043 Vincenzo Librandi, <a href="/A171043/b171043.txt">Table of n, a(n) for n = 1..1000</a>
%t A171043 FromDigits[IntegerDigits[#]/.{8->p,2->q}/.{p->2,q->8}]&/@ Prime[ Range[60]] (* _Harvey P. Dale_, Nov 30 2011 *)
%o A171043 (PARI) a(n)=my(v=[0,1,8,3,4,5,6,7,2,9]);subst(Pol(apply(k->v[k+1], digits(prime(n)))),'x,10) \\ _Charles R Greathouse IV_, Jul 26 2013
%K A171043 nonn,base,easy
%O A171043 1,1
%A A171043 _N. J. A. Sloane_ and _Vincenzo Librandi_, Sep 04 2010