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.

Showing 1-2 of 2 results.

A180520 Primes that become a different prime under the mapping 0 <=> 5.

Original entry on oeis.org

53, 101, 107, 151, 157, 503, 509, 523, 541, 547, 557, 571, 701, 751, 809, 859, 1009, 1031, 1049, 1097, 1103, 1153, 1409, 1459, 1531, 1549, 1559, 1597, 1607, 1657, 1709, 1759, 1901, 1951, 2039, 2053, 2503, 2539, 2609, 2659, 2801, 2851, 2903, 2953, 3011
Offset: 1

Views

Author

Zak Seidov and Robert G. Wilson v, Sep 09 2010

Keywords

Crossrefs

Programs

  • Mathematica
    fQ[n_] := Block[{id = IntegerDigits@n}, (MemberQ[id, 0] || MemberQ[id, 5]) && PrimeQ[ FromDigits[ id /. {0 -> 5, 5 -> 0}] ]]; Select[ Prime@ Range@ 500, fQ]

A222214 In the number n, replace all (decimal) digits '0' with '5' and vice versa.

Original entry on oeis.org

5, 1, 2, 3, 4, 0, 6, 7, 8, 9, 15, 11, 12, 13, 14, 10, 16, 17, 18, 19, 25, 21, 22, 23, 24, 20, 26, 27, 28, 29, 35, 31, 32, 33, 34, 30, 36, 37, 38, 39, 45, 41, 42, 43, 44, 40, 46, 47, 48, 49, 5, 1, 2, 3, 4, 0, 6, 7, 8, 9, 65, 61, 62, 63, 64, 60, 66, 67, 68, 69, 75, 71, 72, 73, 74, 70
Offset: 0

Views

Author

M. F. Hasler, Feb 12 2013

Keywords

Comments

The map which is applied to primes in A171023.

Crossrefs

Programs

  • Mathematica
    a[n_]:= IntegerDigits[n]/.{0->5, 5->0} // FromDigits; Table[a[n], {n, 0, 80}] (* Vincenzo Librandi, Jul 29 2013 *)
  • PARI
    A222214(n,d=[5,1,2,3,4,0,6,7,8,9])={sum(i=1,#n=digits(n),d[n[i]+1]*10^(#n-i),!n*d[1])} \\ N.B.: digits(0)=[] in PARI (v.2.6)
Showing 1-2 of 2 results.