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.

A119393 Numbers n such that the index of the prime and the prime share some digit.

This page as a plain text file.
%I A119393 #7 Sep 14 2014 20:35:54
%S A119393 7,11,13,14,18,23,29,30,31,32,33,34,37,38,41,52,54,55,56,62,63,73,74,
%T A119393 75,78,80,81,82,83,84,92,94,95,97,100,103,105,107,109,110,112,113,114,
%U A119393 115,116,121,125,126,127,128,129,130,131,132,133,135,136,137,138,139,140
%N A119393 Numbers n such that the index of the prime and the prime share some digit.
%H A119393 Reinhard Zumkeller, <a href="/A119393/b119393.txt">Table of n, a(n) for n = 1..10000</a>
%F A119393 Intersection of A000027&A000040 which share a digit.
%e A119393 7 is a member since the seventh prime is 17 with the index and the prime sharing the digit 7.
%t A119393 Select[Range@140, Intersection[IntegerDigits@#, IntegerDigits@ Prime@# ] != {} &]
%o A119393 (Haskell)
%o A119393 import Data.List (intersect)
%o A119393 a119393 n = a119393_list !! (n-1)
%o A119393 a119393_list = filter
%o A119393    (\x -> not $ null $ show x `intersect` (show $ a000040 x)) [1..]
%o A119393 -- _Reinhard Zumkeller_, Sep 14 2014
%Y A119393 Cf. A000027, A000040, A243355 (complement).
%K A119393 nonn,base,less
%O A119393 1,1
%A A119393 _Robert G. Wilson v_, Jul 25 2006