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-1 of 1 results.

A291340 Primes p such that phi(p*(p-1)/2) is a triangular number (A000217).

Original entry on oeis.org

2, 617, 11243, 72817, 134213, 1083601, 1301617, 669175321, 2759347757, 5023245823, 10904836391, 11230923643, 12828977503, 27741297781
Offset: 1

Views

Author

Chai Wah Wu, Aug 31 2017

Keywords

Comments

Inspired by A291199.

Crossrefs

Programs

  • Python
    from _future_ import division
    from sympy.ntheory.primetest import is_square
    from sympy import totient, nextprime
    A291340_list, p = [2], 3
    while p < 10**6:
        if is_square(8*(p-1)*totient((p-1)//2)+1):
            A291340_list.append(p)
        p = nextprime(p)
Showing 1-1 of 1 results.