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.

Previous Showing 51-60 of 67 results. Next

A235630 Primes whose base-7 representation is also the base-8 representation of a prime.

Original entry on oeis.org

2, 3, 5, 17, 47, 71, 89, 101, 197, 229, 241, 269, 271, 337, 353, 383, 479, 521, 577, 607, 631, 647, 673, 677, 719, 743, 761, 827, 997, 1097, 1153, 1181, 1193, 1279, 1289, 1303, 1319, 1447, 1543, 1601, 1697, 1811, 1823, 1907, 1951, 1993, 2017, 2131, 2203, 2243, 2339, 2357, 2383, 2549
Offset: 1

Views

Author

M. F. Hasler, Jan 13 2014

Keywords

Comments

This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.

Examples

			17 = 23_7 and 23_8 = 19 are both prime, so 17 is a term.
		

Crossrefs

Cf. A235622, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

  • Mathematica
    Select[Prime@Range@500, PrimeQ@ FromDigits[IntegerDigits[#, 7], 8] &] (* Giovanni Resta, Sep 12 2019 *)
  • PARI
    is(p,b=8,c=7)=isprime(vector(#d=digits(p,c),i,b^(#d-i))*d~)&&isprime(p) \\ Note: This code is only valid for b > c.

A235631 Primes whose base-6 representation is also the base-8 representation of a prime.

Original entry on oeis.org

2, 3, 5, 11, 13, 23, 29, 31, 43, 61, 71, 79, 89, 107, 109, 113, 137, 139, 163, 173, 193, 223, 239, 251, 271, 281, 283, 313, 317, 347, 383, 431, 439, 461, 467, 491, 499, 541, 557, 593, 607, 641, 659, 661, 691, 701, 743, 761, 853, 863, 881, 919, 971, 997, 1013, 1031, 1051, 1061, 1063
Offset: 1

Views

Author

M. F. Hasler, Jan 13 2014

Keywords

Comments

This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.

Examples

			11 = 15_6 and 15_8 = 13 are both prime, so 11 is a term.
		

Crossrefs

Cf. A235638, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

  • Mathematica
    Select[Prime@Range@500, PrimeQ@FromDigits[IntegerDigits[#, 6], 8] &] (* Giovanni Resta, Sep 12 2019 *)
  • PARI
    is(p,b=8,c=6)=isprime(vector(#d=digits(p,c),i,b^(#d-i))*d~)&&isprime(p) \\ Note: This code is only valid for b > c.

A235632 Primes whose base-5 representation is also the base-8 representation of a prime.

Original entry on oeis.org

2, 3, 11, 13, 31, 41, 53, 73, 101, 131, 151, 223, 281, 313, 353, 401, 463, 521, 523, 541, 593, 661, 701, 733, 773, 941, 983, 1013, 1063, 1091, 1093, 1123, 1153, 1193, 1201, 1321, 1381, 1423, 1471, 1481, 1483, 1571, 1583, 1601, 1613, 1663, 1693, 1741, 1753, 1801, 1861, 1871, 1873
Offset: 1

Views

Author

M. F. Hasler, Jan 13 2014

Keywords

Comments

This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.

Examples

			11 = 21_5 and 21_8 = 17 are both prime, so 11 is a term.
		

Crossrefs

Cf. A235628, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

  • Mathematica
    Select[Prime[Range[300]],PrimeQ[FromDigits[IntegerDigits[#,5],8]]&] (* Harvey P. Dale, Dec 15 2018 *)
  • PARI
    is(p,b=8,c=5)=isprime(vector(#d=digits(p,c),i,b^(#d-i))*d~)&&isprime(p) \\ Note: This code is only valid for b > c.

A235633 Primes whose base-4 representation is also the base-8 representation of a prime.

Original entry on oeis.org

2, 3, 7, 11, 19, 29, 37, 59, 71, 89, 97, 107, 149, 167, 223, 227, 251, 281, 337, 347, 439, 461, 463, 491, 499, 509, 521, 563, 599, 617, 647, 653, 659, 701, 727, 733, 739, 751, 757, 769, 797, 809, 823, 877, 887, 907, 911, 929, 937, 1031, 1087, 1093, 1109, 1163, 1187, 1193, 1297
Offset: 1

Views

Author

M. F. Hasler, Jan 13 2014

Keywords

Comments

This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.

Examples

			7 = 13_4 and 13_8 = 11 are both prime, so 7 is a term.
		

Crossrefs

Cf. A235618, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

  • Mathematica
    Select[Prime@Range@500, PrimeQ@ FromDigits[IntegerDigits[#, 4], 8] &] (* Giovanni Resta, Sep 12 2019 *)
  • PARI
    is(p,b=8,c=4)=isprime(vector(#d=digits(p,c),i,b^(#d-i))*d~)&&isprime(p) \\ Note: This code is only valid for b > c.

A235634 Primes whose base-4 representation is also the base-7 representation of a prime.

Original entry on oeis.org

2, 3, 11, 23, 29, 31, 41, 71, 79, 101, 109, 113, 137, 149, 157, 163, 191, 199, 239, 251, 263, 269, 283, 307, 353, 397, 401, 431, 443, 521, 547, 601, 701, 709, 743, 751, 773, 853, 887, 941, 947, 983, 1013, 1039, 1049, 1069, 1109, 1151, 1217, 1283, 1303, 1487, 1489, 1663, 1669, 1789, 1823, 1901, 1949, 1973
Offset: 1

Views

Author

M. F. Hasler, Jan 13 2014

Keywords

Comments

This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.

Examples

			E.g., 11 = 23_4 and 23_7 = 17 both are prime.
		

Crossrefs

Cf. A235617, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971, A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

  • Maple
    filter:= proc(n) local L,m;
      if not isprime(n) then return false fi;
      L:= convert(n,base,4);
      isprime(add(L[i]*7^(i-1),i=1..nops(L)));
    end proc:
    select(filter, [2,seq(i,i=3..10000,2)]); # Robert Israel, Jul 02 2018
  • PARI
    is(p,b=7,c=4)=isprime(vector(#d=digits(p,c),i,b^(#d-i))*d~)&&isprime(p) \\ Note: This code is only valid for b > c.

A235636 Primes whose base-6 representation is also the base-7 representation of a prime.

Original entry on oeis.org

2, 3, 5, 17, 47, 71, 97, 101, 131, 157, 173, 191, 211, 251, 257, 277, 307, 311, 353, 367, 401, 421, 461, 487, 491, 563, 577, 601, 631, 643, 647, 683, 701, 743, 751, 761, 853, 857, 907, 911, 937, 953, 983, 1021, 1033, 1087, 1103, 1193, 1201, 1259, 1277, 1289, 1327, 1451, 1471, 1571, 1583, 1597, 1601, 1747, 1831, 1907, 1933
Offset: 1

Views

Author

M. F. Hasler, Jan 13 2014

Keywords

Comments

This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.

Examples

			17 = 25_6 and 25_7 = 19 are both prime.
		

Crossrefs

Cf. A235637, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

  • Mathematica
    Select[Prime[Range[300]],PrimeQ[FromDigits[IntegerDigits[#,6],7]]&] (* Harvey P. Dale, Sep 17 2017 *)
  • PARI
    is(p,b=7,c=6)=isprime(vector(#d=digits(p,c),i,b^(#d-i))*d~)&&isprime(p) \\ Note: This code is only valid for b > c.

A235637 Primes whose base-7 representation also is the base-6 representation of a prime.

Original entry on oeis.org

2, 3, 5, 19, 61, 89, 127, 131, 173, 211, 229, 257, 281, 383, 397, 421, 463, 467, 523, 547, 593, 617, 719, 757, 761, 859, 883, 911, 953, 967, 971, 1069, 1097, 1153, 1163, 1181, 1303, 1307, 1429, 1433, 1471, 1489, 1531, 1583, 1597, 1723, 1741, 1867, 1877, 1951, 1979, 1993, 2437
Offset: 1

Views

Author

M. F. Hasler, Jan 13 2014

Keywords

Comments

This sequence is part of the two-dimensional array of sequences based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.

Examples

			E.g., 19 = 25_7 and 25_6 = 17 are both prime.
		

Crossrefs

Cf. A235636, A235265, A235266, A152079, A235461 - A235482, A065720 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924, A235615 - A235639. See the LINK for further cross-references.

Programs

  • PARI
    is(p,b=6,c=7)=vecmax(d=digits(p,c))
    				
  • PARI
    forprime(p=1,3e3,is(p,7,6)&&print1(vector(#d=digits(p,6),i,7^(#d-i))*d~,",")) \\ To produce the terms, this is more efficient than to select them using straightforwardly is(.)=is(.,6,7)

A267765 Numbers whose base-5 representation is a square when read in base 10.

Original entry on oeis.org

0, 1, 4, 25, 36, 49, 89, 100, 121, 139, 249, 329, 351, 625, 676, 729, 900, 961, 1225, 1551, 1654, 2146, 2225, 2289, 2500, 2601, 3025, 3289, 3475, 3521, 3814, 4324, 4529, 4801, 5086, 5149, 6225, 6726, 6829, 7374, 8225, 8464, 8775, 9454, 9601, 13926, 15625, 15876, 16129, 16900, 17161
Offset: 1

Views

Author

M. F. Hasler, Jan 20 2016

Keywords

Comments

Trivially includes powers of 25, since 25^k = 100..00_5 = 10^(2k) when read in base 10. Moreover, for any a(n) in the sequence, 25*a(n) is also in the sequence. One could call "primitive" the terms not of this form, these would be 1, 4, 36 = 121_5, 49 = 144_5, 89 = 324_5, ... These primitive terms include the subsequence 25^k + 2*5^k + 1 = (5^k+1)^2, k > 0, which yields A033934 when written in base 5.

Crossrefs

Cf. A267763 - A267769 for bases 3 through 9. The base-2 analog is A000302 = powers of 4.

Programs

  • Mathematica
    Select[Range[0, 17200], IntegerQ@ Sqrt@ FromDigits@ IntegerDigits[#, 5] &] (* Michael De Vlieger, Jan 24 2016 *)
  • PARI
    is(n,b=5,c=10)=issquare(subst(Pol(digits(n,b)),x,c))
    
  • Python
    A267765_list = [int(d,5) for d in (str(i**2) for i in range(10**6)) if max(d) < '5'] # Chai Wah Wu, Mar 12 2016

A267766 Numbers whose base-6 representation is a square when read in base 10.

Original entry on oeis.org

0, 1, 4, 17, 36, 49, 64, 89, 124, 144, 169, 232, 305, 388, 409, 449, 544, 577, 612, 665, 953, 1105, 1296, 1369, 1444, 1529, 1764, 1849, 1936, 2033, 2304, 2825, 3097, 3204, 3280, 3473, 4345, 4464, 4588, 4841, 5104, 5184, 5329, 5633, 6084, 6241, 7081, 7649, 8044, 8352, 8449, 9160, 9593
Offset: 1

Views

Author

M. F. Hasler, Jan 20 2016

Keywords

Comments

Trivially includes powers of 36, since 36^k = 100..00_6 = 10^(2k) when read in base 10. Moreover, for any a(n) in the sequence, 36*a(n) is also in the sequence. One could call "primitive" the terms not of this form. These primitive terms include the subsequence 36^k + 2*6^k + 1 = (6^k+1)^2, k > 0, which yields A033934 when written in base 6.

Crossrefs

Cf. A267763 - A267769 for bases 3 through 9. The base-2 analog is A000302 = powers of 4.

Programs

  • Magma
    [n: n in [0..10^4] | IsSquare(Seqint(Intseq(n,6)))]; // Bruno Berselli, Jan 20 2016
    
  • Mathematica
    Select[Range[0, 10^4], IntegerQ@ Sqrt@ FromDigits@ IntegerDigits[#, 6] &] (* Michael De Vlieger, Jan 24 2016 *)
  • PARI
    is(n,b=6,c=10)=issquare(subst(Pol(digits(n,b)),x,c))
    
  • Python
    A267766_list = [int(d,6) for d in (str(i**2) for i in range(10**6)) if max(d) < '6'] # Chai Wah Wu, Mar 12 2016

A231476 Primes whose base-3 representation is also the base-6 representation of a prime.

Original entry on oeis.org

2, 7, 13, 19, 31, 151, 163, 211, 223, 229, 241, 271, 349, 367, 439, 601, 607, 613, 631, 643, 673, 727, 733, 859, 907, 937, 997, 1021, 1033, 1039, 1051, 1093, 1117, 1123, 1129, 1153, 1321, 1327, 1399, 1423, 1429, 1609, 1627, 1657, 1669, 1741, 1747, 1759, 1777, 1789, 1831, 1867, 1933, 1951, 1993, 1999
Offset: 1

Views

Author

M. F. Hasler, Jan 12 2014

Keywords

Comments

This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.
Subsequence of A045375A045331.

Examples

			7 = 21_3 and 21_6 = 13 are both prime.
		

Crossrefs

Cf. A235469, A235265, A235266, A235473, A152079, A235461 - A235482, A065720A036952, A065721 - A065727, A235394, A235395, A089971A020449, A089981, A090707 - A091924. See the LINK for further cross-references.

Programs

  • Mathematica
    Select[Prime[Range[400]],PrimeQ[FromDigits[ IntegerDigits[#, 3], 6]] &] (* Harvey P. Dale, Sep 29 2016 *)
  • PARI
    is(p,b=6,c=3)=isprime(vector(#d=digits(p,c),i,b^(#d-i))*d~)&&isprime(p) \\ Note: This code is only valid for b>c.
Previous Showing 51-60 of 67 results. Next