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.

A344202 Primes p such that gcd(ord_p(2), ord_p(3)) = 1.

Original entry on oeis.org

683, 599479, 108390409, 149817457, 666591179, 2000634731, 4562284561, 14764460089, 24040333283, 2506025630791, 5988931115977
Offset: 1

Views

Author

Sofia Lacerda, May 11 2021

Keywords

Comments

'ord_p' here means the multiplicative order, not to be confused with the p-adic order that is also often denoted by ord_p.
Related to Diophantine equations of the form (2^x-1)*(3^y-1) = n*z^2.

Crossrefs

Programs

  • Mathematica
    Select[Range[10^6], PrimeQ[#] && CoprimeQ[MultiplicativeOrder[2, #], MultiplicativeOrder[3, #]] &] (* Amiram Eldar, May 11 2021 *)
  • PARI
    isok(p) = isprime(p) && (gcd(znorder(Mod(2, p)), znorder(Mod(3, p))) == 1); \\ Michel Marcus, May 11 2021
    
  • Python
    from sympy.ntheory import n_order
    from sympy import gcd, nextprime
    A344202_list, p = [], 5
    while p < 10**9:
        if gcd(n_order(2,p),n_order(3,p)) == 1:
            A344202_list.append(p)
        p = nextprime(p) # Chai Wah Wu, May 12 2021

Extensions

a(3)-a(5) from Michel Marcus, May 11 2021
a(6)-a(8) from Amiram Eldar, May 11 2021
a(9) from Daniel Suteu, May 16 2021
a(10) from Sofia Lacerda, Jul 07 2021
a(11) from Sofia Lacerda, Aug 03 2021