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.

A299929 Prime numbers represented by a cyclotomic binary form f(x, y) with x and y prime numbers and 0 < y < x.

Original entry on oeis.org

7, 13, 19, 29, 37, 53, 61, 67, 79, 97, 103, 109, 127, 139, 163, 173, 199, 211, 223, 229, 277, 283, 293, 313, 349, 397, 421, 433, 439, 457, 463, 487, 541, 577, 607, 641, 643, 691, 727, 733, 739, 787, 877, 937, 997, 1009, 1031, 1063, 1093, 1327, 1373, 1423, 1447
Offset: 1

Views

Author

Peter Luschny, Feb 21 2018

Keywords

Comments

A cyclotomic binary form over Z is a homogeneous polynomial in two variables which has the form f(x, y) = y^EulerPhi(k)*CyclotomicPolynomial(k, x/y) where k is some integer >= 3. An integer n is represented by f if f(x,y) = n has an integer solution.

Examples

			6841 = f(7,5) for f(x,y) = x^4+x^3*y+x^2*y^2+x*y^3+y^4.
		

Crossrefs

Programs

  • Julia
    A299929list(upto) = [n for n in 1:upto if isprime(ZZ(n)) && isA299928(n)]
    println(A299929list(1450))
  • Mathematica
    isA299929[n_] := If[! PrimeQ[n], Return[False],
       K = Floor[5.383 Log[n]^1.161]; M = Floor[2 Sqrt[n/3]];
       For[k = 3, k <= K, k++,
       For[y = 1, y <= M, y++, If[PrimeQ[y], For[x = y + 1, x <= M, x++, If[PrimeQ[x],
       If[n == y^EulerPhi[k] Cyclotomic[k, x/y], Return[True]]]]]]];
    Return[False]]; Select[Range[1450], isA299929]