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.

A226567 Numbers k such that 2*k+1 is neither a square nor a prime.

Original entry on oeis.org

7, 10, 13, 16, 17, 19, 22, 25, 27, 28, 31, 32, 34, 37, 38, 42, 43, 45, 46, 47, 49, 52, 55, 57, 58, 59, 61, 62, 64, 66, 67, 70, 71, 72, 73, 76, 77, 79, 80, 82, 85, 87, 88, 91, 92, 93, 94, 97, 100, 101, 102, 103, 104, 106, 107, 108, 109, 110, 115, 117, 118, 121
Offset: 1

Views

Author

César Aguilera, Jun 13 2013

Keywords

Comments

The natural numbers A000027 that are not in A005097 and A046092.
A226567 = Complement(A000027, A005097, A046092). - Zak Seidov, Jul 08 2013

Examples

			a(2)=10 is a term because 2*10+1 = 21 is neither a square nor a prime.
		

Crossrefs

Programs

  • Maple
    remove(n -> issqr(2*n+1) or isprime(2*n+1), [$1..1000]); # Robert Israel, Jun 16 2017
  • Mathematica
    Select[Range[200], ! PrimeQ[2 # + 1] && ! IntegerQ[Sqrt[2 # + 1]] &] (* T. D. Noe, Jun 13 2013 *)