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!)
A107934 Numbers n such that n and n-th prime have only one common digit = 3. 4
23, 30, 32, 33, 34, 38, 63, 83, 103, 130, 131, 132, 143, 153, 235, 238, 311, 314, 330, 333, 338, 341, 343, 344, 345, 346, 349, 353, 354, 355, 356, 357, 360, 361, 366, 368, 370, 371, 378, 396, 399, 432, 433, 434, 435, 438, 439, 443, 453, 463, 473, 513, 523 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Other cases of common digit d: A107931 (d=0), A107932 (d=1), A107933 (d=2), A107935 (d=4), A107936 (d=5), A107937 (d=6), A107938 (d=7), A107939 (d=8), A107940 (d=9). Cf. A107930 - smallest m's for digits 0,...,9.
LINKS
EXAMPLE
a(1)=23 because 23rd prime, 83 and 23 have 3 as their only common digit, and 23 is the smallest such number.
MAPLE
filter:= n -> convert(convert(n, base, 10), set) intersect convert(convert(ithprime(n), base, 10), set) = {3}:
select(filter, [$1..1000]); # Robert Israel, May 10 2021
MATHEMATICA
bb={}; Do[If[IntegerDigits [n]\[Intersection]IntegerDigits [ Prime[n]]\[Equal]{3}, bb=Append[bb, n]], {n, 1800}]; bb
CROSSREFS
Sequence in context: A068714 A344127 A036267 * A356087 A155107 A126719
KEYWORD
nonn,base
AUTHOR
Zak Seidov, May 28 2005
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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 10:55 EDT 2024. Contains 371241 sequences. (Running on oeis4.)