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.

Previous Showing 21-26 of 26 results.

A332207 a(n) is the number of 3-factorizations of n.

Original entry on oeis.org

1, 1, 1, 2, 1, 2, 2, 2, 2, 3, 1, 3, 2, 3, 2, 4, 1, 4, 3, 3, 2, 4, 2, 5, 3, 3, 2, 5, 2, 6, 2, 3, 3, 6, 2, 6, 3, 4, 3, 6, 1, 6, 4, 5, 3, 5, 2, 7, 4, 5, 3, 6, 2, 8, 3, 4, 3, 8, 2, 8, 4, 4, 4, 8, 3, 7, 2, 6, 4, 9, 2, 8, 3, 5, 5, 6, 2, 10, 6, 6, 3, 7, 2, 10, 4, 5, 3, 10
Offset: 1

Views

Author

Michel Marcus, Feb 07 2020

Keywords

Comments

See Bingham link for definitions.

Crossrefs

Cf. A014556.

Programs

  • Mathematica
    a[n_] := Block[{c=0, z=1}, While[3 z^2 - 3 z + 1 <= n, c += Length@ Solve[ x y z - (x-1) (y-1) (z-1) == n && x >= y >= z, {x, y}, Integers]; z++]; c]; Array[a, 88] (* Giovanni Resta, Feb 07 2020 *)

Extensions

More terms from Giovanni Resta, Feb 07 2020

A356751 Positive integers m such that x^2 - x + m contains more than m/2 prime numbers for x = 1, 2, ..., m.

Original entry on oeis.org

3, 5, 7, 11, 17, 41, 47, 59, 67, 101, 107, 161, 221, 227, 347, 377
Offset: 1

Views

Author

Marco Ripà, Aug 25 2022

Keywords

Comments

This sequence is related to A188424, since we are considering only the addends m := 2n - 1 of k^2 + k + 2n - 1 such that A188424(n)/(2n - 1) > 1/2.
Furthermore, it is conjectured that the present sequence consists of only 16 terms (it has been checked by brute force that there are only 16 terms which are smaller than 20000) and that they are all prime or semiprime (e.g., a(12) = 161, a(13) = 221, and a(16) = 377 are semiprime). Lastly, we trivially point out that all terms must be odd, since if m is even, then x^2 - x + m is also even (and x^2 - x + 2 has only one prime for x <= 2).
For an explanation of the abundance of primes of the form x^2 - x + m, for some given m, see Goudsmit's paper in Links.
Stronger conjecture: for every real number e > 0 and every integer m > 0, there are finitely many integer polynomials P(x) = Ax^2 + Bx + C with at least e*m primes in P(1), ..., P(m) and max(|A|, |B|, |C|) <= m. - Charles R Greathouse IV, Sep 11 2022
Altering the bounds for x in the definition to 0 <= x <= m-1 (and counting the same prime twice for x=0 and x=1 if m is prime) would result in an additional term 2. Conjecturally, there would be no more additional terms. - Pontus von Brömssen, Jun 20 2024

Examples

			7 is a term since x^2 - x + 7 is prime for x = 1, 3, 4, and 6, which is 4 values of x, and 4 > 7/2.
		

Crossrefs

Cf. A014556 (Euler's "Lucky" numbers).

Programs

A118124 Triangle T(n,m) = (n+m)^2+n+m+41, read by rows.

Original entry on oeis.org

41, 43, 47, 47, 53, 61, 53, 61, 71, 83, 61, 71, 83, 97, 113, 71, 83, 97, 113, 131, 151, 83, 97, 113, 131, 151, 173, 197, 97, 113, 131, 151, 173, 197, 223, 251, 113, 131, 151, 173, 197, 223, 251, 281, 313, 131, 151, 173, 197, 223, 251, 281, 313, 347, 383, 151, 173
Offset: 0

Views

Author

Roger L. Bagula, May 12 2006

Keywords

Comments

Defined to display A005846(d) in the d-th antidiagonal, d sufficiently small.

Examples

			41;
43, 47;
47, 53, 61;
53, 61, 71, 83;
61, 71, 83, 97, 113;
71, 83, 97, 113, 131, 151;
83, 97, 113, 131, 151, 173, 197;
97, 113, 131, 151, 173, 197, 223, 251;
113, 131, 151, 173, 197, 223, 251, 281, 313;
131, 151, 173, 197, 223, 251, 281, 313, 347, 383;
151, 173, 197, 223, 251, 281, 313, 347, 383, 421, 461;
		

Crossrefs

Cf. A014556.

Programs

  • Mathematica
    f[n_] = n^2 + n + 41 t[n_, m_] = f[n + m] a = Table[Table[t[n, m], {n, 0, m}], {m, 0, 10}] c = Flatten[a]

Extensions

Keyword:less and reference to A005846, A014556 added - The Assoc. Eds. of the OEIS, Oct 20 2010

A217396 Prime indices of Euler's lucky numbers.

Original entry on oeis.org

1, 2, 3, 5, 7, 13
Offset: 1

Views

Author

Raphie Frank, Oct 02 2012

Keywords

Formula

a(n) = A000720(A014556(n)). - Alexander R. Povolotsky, Sep 22 2022

A276476 a(n) is the number of distinct integers of the form x^2-x-prime(n) for 0<=x<=prime(n)+1 whose absolute value is prime.

Original entry on oeis.org

1, 2, 3, 5, 6, 9, 9, 13, 11, 17, 20, 17, 10, 32, 16, 23, 26, 30, 25, 21, 55, 38, 30, 27, 25, 34, 57, 19, 83, 49, 44, 40, 39, 60, 37, 77, 54, 57, 27, 43, 79, 67, 45, 110, 42, 93, 79, 79, 43, 85, 46, 90, 96, 41, 54, 96, 127, 107, 63, 78, 181, 67, 78, 72, 189, 51, 77, 103
Offset: 1

Views

Author

Charles Kusniec, Sep 12 2016

Keywords

Examples

			a(2)=2 because prime(2)=3 and x^2 - x - 3 generates {-3, -3, -1, 3, 9}. This contains two integers, -3 and 3, whose absolute value is prime.
a(14)=32 because prime(14)=43 and x^2 - x - 43 generates 32 prime numbers for x = 0..44.
		

Crossrefs

Programs

  • PARI
    isaprime(x) = isprime(x) || isprime(-x);
    nbp(n) = {v = vector(prime(n)+2, x, x--; x^2-x-prime(n)); vp = select(x->isaprime(x), v); vp = Set(vp); #vp;} \\ Michel Marcus, Sep 13 2016

Extensions

More terms from Michel Marcus, Sep 13 2016

A279241 Let f(n) = 4*n^2 + 2*n + 41. The values |f(n)| are primes for all n in the range -20 to 19 (but not for n=-21 or 20). The sequence lists this maximal run of primes in the order in which they appear.

Original entry on oeis.org

1601, 1447, 1301, 1163, 1033, 911, 797, 691, 593, 503, 421, 347, 281, 223, 173, 131, 97, 71, 53, 43, 41, 47, 61, 83, 113, 151, 197, 251, 313, 383, 461, 547, 641, 743, 853, 971, 1097, 1231, 1373, 1523
Offset: 1

Views

Author

Charles Kusniec, Dec 08 2016

Keywords

Comments

This same list will also appear for 0<=x<=39 using the form 4x^2-158x+1601.
The substitution 2n = m changes this quadratic form into Euler's famous quadratic form m^2+m+41 (see A005846). Concerning the conjectured extremal properties of these forms, one should note the comment from T. D. Noe in A005846. For another quadratic form similar to this one, see A145096. - N. J. A. Sloane, Dec 17 2016

Crossrefs

Programs

  • Maple
    s1:=[]; f:=n->4*n^2+2*n+41;
    for n from -20 to 19 do if isprime(abs(f(n))) then s1:=[op(s1), abs(f(n))]; fi; od:
    s1; # From N. J. A. Sloane, Dec 17 2016. This does nothing more than produce the primes mentioned in the definition

Extensions

Edited by N. J. A. Sloane, Dec 17 2016
Previous Showing 21-26 of 26 results.