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 41-43 of 43 results.

A253900 a(n) is the number of squares of the form x^2 + x + n^2 for 0 <= x <= n^2.

Original entry on oeis.org

1, 2, 2, 3, 3, 2, 4, 4, 2, 4, 4, 3, 6, 4, 2, 4, 8, 4, 4, 4, 2, 6, 6, 3, 6, 4, 4, 8, 4, 2, 6, 12, 4, 4, 4, 2, 6, 12, 4, 5, 5, 4, 8, 4, 4, 8, 8, 4, 6, 6, 2, 8, 8, 2, 4, 4, 4, 12, 12, 6, 6, 8, 4, 4, 4, 4, 16, 8, 2, 4, 8, 8, 12, 6, 2, 6, 12, 4, 4, 8, 4, 8, 8, 3, 9
Offset: 1

Views

Author

Michel Lagneau, Jan 18 2015

Keywords

Comments

Properties of the sequence:
Of the first 1000 terms, 70.5% are powers of 2 (see the table below). We observe repeated terms a(n) = a(n+1) for n = 2, 4, 7, 10, 18, 19, 22, 26, 33, 34, 40, 44, 46, 49, 52, 55, ....
The following table lists statistics of a(n) for n=1..1000.
-------------------------------
| a(n) | frequency | % |
-------------------------------
| 1 | 1 | 0.1% |
| 2 | 61 | 6.1% |
| 3 | 9 | 0.9% |
| 4 | 235 | 23.5% |
| 5 | 2 | 0.2% |
| 6 | 72 | 7.2% |
| 7 | 1 | 0.1% |
| 8 | 266 | 26.6% |
| 9 | 12 | 1.2% |
| 10 | 6 | 0.6% |
| 12 | 116 | 11.6% |
| 14 | 1 | 0.1% |
| 16 | 130 | 13.0% |
| 18 | 10 | 1.0% |
| 20 | 11 | 1.1% |
| 24 | 45 | 4.5% |
| 27 | 1 | 0.1% |
| 32 | 12 | 1.2% |
| 36 | 5 | 0.5% |
| 40 | 1 | 0.1% |
| 48 | 2 | 0.2% |
| 54 | 1 | 0.1% |
-------------------------------
| TOTAL | 1000 | 100.0% |
-------------------------------
Based on the results in the table and the computing of Jon E. Schoenfield through n=3500, is it possible to determine an approximation of the probability p(a(n)= power of 2)?
Conjecture: the probability that a(n) is a power of 2 is such that 0.703 < p(a(n)=2^p) < 0.705.
The integers n such that a(n)=2 are 2, 3, 6, 9, 15, 21, 30, 36, 51, 54, 69, ... Is this A040040? - Michel Marcus, Jan 22 2015

Examples

			a(7) = 4 because the 4 squares of the form x^2 + x + 7^2 are 49, 121, 289, 2401 for x = 0, 8, 15, 48, respectively.
a(8) = 4 because the 4 squares of the form x^2 + x + 8^2 are 64, 196, 484, 4096 for x = 0, 11, 20, 63, respectively.
		

Programs

  • Mathematica
    lst={}; Do[k=0; Do[If[IntegerQ[Sqrt[x^2+x+n^2]], k=k+1], {x, 0, n^2}]; AppendTo[lst, k], {n, 1, 100}]; lst
  • PARI
    a(n) = sum(x=0, n^2, issquare(x^2 + x + n^2)); \\ Michel Marcus, Jan 21 2015

A168544 The nonprime halfs of even single (or even isolated) numbers.

Original entry on oeis.org

1, 6, 9, 15, 21, 30, 36, 51, 54, 69, 75, 90, 96, 99, 114, 120, 135, 141, 156, 174, 210, 216, 231, 261, 285, 300, 309, 321, 330, 405, 411, 414, 429, 441, 510, 516, 525, 531, 546, 576, 615, 639, 645, 651, 639, 645, 651, 660, 714, 726, 741, 744, 804, 810, 834, 849
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Nov 29 2009

Keywords

Crossrefs

A371029 Numbers m such that if k = 27*m^3 + 3*m then k-1 and k+1 are primes.

Original entry on oeis.org

1, 5, 6, 7, 13, 29, 39, 40, 45, 81, 120, 122, 127, 142, 143, 205, 214, 241, 293, 334, 341, 390, 391, 408, 486, 502, 506, 510, 577, 632, 640, 655, 669, 675, 686, 711, 720, 792, 793, 794, 802, 851, 859, 891, 901, 909, 972, 974, 992, 1000, 1041, 1078, 1082, 1096, 1099, 1111, 1206, 1258, 1280, 1423
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Mar 25 2024

Keywords

Comments

Conjecture: this sequence is infinite.

Examples

			1 is this sequence because 27*1^3 + 3*1 = 30 has 2 prime neighbors 29 and 31.
		

Crossrefs

Numbers m such that (n*m)^n + n*m has 2 prime neighbors: A040040 (n=1); no sequence (n=2) in OEIS; this sequence (n=3); no sequence (n=4) in OEIS.

Programs

  • Magma
    [m: m in [1..1500] | IsPrime(27*m^3+3*m-1) and IsPrime(27*m^3+3*m+1)];
  • Mathematica
    Select[Range[1500], And @@ PrimeQ[27*#^3 + 3*# + {-1, 1}] &] (* Amiram Eldar, Mar 26 2024 *)
Previous Showing 41-43 of 43 results.