The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A171035 In the sequence of prime numbers, replace all the '7' digits with '1' and vice versa. 3

%I #9 Mar 31 2017 11:10:39

%S 2,3,5,1,77,73,71,79,23,29,37,31,47,43,41,53,59,67,61,17,13,19,83,89,

%T 91,707,703,701,709,773,721,737,731,739,749,757,751,763,761,713,719,

%U 787,797,793,791,799,277,223,221,229,233,239,247,257,251,263

%N In the sequence of prime numbers, replace all the '7' digits with '1' and vice versa.

%H Vincenzo Librandi, <a href="/A171035/b171035.txt">Table of n, a(n) for n = 1..1000</a>

%t FromDigits[IntegerDigits[#]/.{7->p, 1->q}/.{p->1, q->7}]&/@Prime[Range[100]] (* _Vincenzo Librandi_, Apr 07 2013 *)

%o (PARI) a(n)=my(v=[0,7,2,3,4,5,6,1,8,9]);subst(Pol(apply(k->v[k+1], digits(prime(n)))),'x,10) \\ _Charles R Greathouse IV_, Jul 25 2013

%K nonn,base,easy

%O 1,1

%A _N. J. A. Sloane_ and _Vincenzo Librandi_, Sep 04 2010

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 May 20 06:19 EDT 2024. Contains 372703 sequences. (Running on oeis4.)