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-22 of 22 results.

A176586 Primes of the form : n^3 + Largest square + Smallest square, (Largest square <= n^3, Smallest square >= n^3).

Original entry on oeis.org

3, 222601, 2824933, 3573761, 4215749, 5183821, 6001997, 6592613, 7886597, 8592401, 9725393, 10127813, 10531813, 12751093, 13720661, 15263009, 18087529, 30232597, 52730113, 68727469, 79395353, 109787269, 139967461, 162040453
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    r[n_]:=n^3;f[n_]:=r[n]+Floor[Sqrt[r[n]]]^2+Ceiling[Sqrt[r[n]]]^2;Select[Table[f[n],{n,0,7!}],PrimeQ[ # ]&]
    lsss[n_]:=Module[{c=n^3},c+Floor[Sqrt[c]]^2+Ceiling[Sqrt[c]]^2]; Select[Array[ lsss,1000],PrimeQ] (* Harvey P. Dale, Feb 22 2023 *)
  • PARI
    print1(3);for(n=2,1e3,t=sqrtint(n^3);if(isprime(t=n^3+t^2+ (t+1)^2) && !issquare(n),print1(", "t))) \\ Charles R Greathouse IV, Apr 15 2012

A198831 Successive records in maximal positive distance d = x^3 - y^2.

Original entry on oeis.org

0, 4, 20, 28, 39, 47, 81, 135, 152, 207, 216, 270, 496, 546, 615, 732, 832, 1148, 1208, 1343, 1391, 1541, 1750, 2000, 2260, 2548, 2575, 2825, 3679, 3807, 4220, 4604, 5076, 5508, 5835, 5859, 6291, 7538, 7656, 8188, 8423, 8712, 8964, 12092, 12205, 12511, 12926
Offset: 1

Views

Author

Artur Jasinski, Oct 30 2011

Keywords

Comments

Successive records in A077116.

Crossrefs

Programs

  • Mathematica
    aa = {}; bb = {}; max = -1; Do[kk = x^3 - Floor[x^(3/2)]^2; If[kk > max, AppendTo[aa, kk]; AppendTo[bb, x]; max = kk], {x, 1, 10000}]; aa
Previous Showing 21-22 of 22 results.