A030663 Essentially same as A013638.
1, 1, 1, 10, 15, 21, 35, 55, 77, 77, 77, 91, 143
Offset: 0
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.
a030664 n = a007917 n * a007918 n -- Reinhard Zumkeller, May 22 2015, Feb 24 2011
f[n_] := If[Abs[n] < 2, 1, NextPrime[n + 1, -1] NextPrime[n - 1]]; Array[f, 51, 0] (* Robert G. Wilson v, Feb 28 2011 *)
numlib::prevprime(i)*nextprime(i) $ i = 0..50 // Zerinvary Lajos, Feb 26 2007
a(n) = if (n < 2, 1, precprime(n)*nextprime(n)); \\ Michel Marcus, Mar 21 2015
a(3)=3^2-2*5=-1, a(4)=4^2-3*5=1.
Table[n^2-NextPrime[n]NextPrime[n,-1],{n,3,80}] (* Harvey P. Dale, Aug 22 2011 *)
a(n) = n^2 - precprime(n-1)*nextprime(n+1); \\ Michel Marcus, Mar 22 2020
a(3)=3*3-2*5=-1, a(4)=3*5-3*5=0
a(n) = if (isprime(n), n^2 - precprime(n-1)*nextprime(n+1), 0); \\ Michel Marcus, Mar 22 2020
Comments