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.

A377939 Nonsquares k such that A377938(k) is not a prime.

Original entry on oeis.org

3, 5, 7, 17, 19, 22, 23, 29, 31, 33, 37, 43, 47, 53, 55, 71, 85, 87, 89, 91, 102, 103, 105, 106, 109, 111, 112, 113, 115, 116, 117, 122, 123, 133, 139, 141, 143, 145, 149, 153, 155, 157, 162, 163, 167, 175, 177, 191, 193, 199, 201, 203, 209, 211, 221, 223, 233, 239, 241, 243, 245, 247, 249, 253
Offset: 1

Views

Author

Robert Israel, Nov 11 2024

Keywords

Comments

Numbers k such that k is a primitive root modulo some nonprime x > k but not modulo any prime between k and x.
Numbers k such that 0 < A377938(k) < A023049(k).

Examples

			a(3) = 7 is a term because 7 is a primitive root mod 10, while the least prime > 7 for which 7 is a primitive root is 11.
		

Crossrefs

Programs

  • Maple
    filter:= proc(n) local k;
      if issqr(n) then return false fi;
      for k from n+1 do
        if igcd(k,n) = 1 and numtheory:-order(n,k) = numtheory:-phi(k) then return not isprime(k) fi
      od
    end proc:
    select(filter, [$2..1000]);