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.

A229960 Primes of the form n^3 - T(n) - 1 where T(n) is the n-th triangular number.

Original entry on oeis.org

53, 109, 683, 4759, 7789, 9029, 13523, 15299, 45989, 63179, 68059, 90089, 116423, 174019, 225089, 370619, 610469, 700963, 994949, 1025149, 1119403, 1398599, 1594709, 1898873, 2291189, 2561899, 2734129, 2975543, 3038039, 3296773, 3784169, 3857489, 5913269, 6212483
Offset: 1

Views

Author

K. D. Bajpai, Oct 04 2013

Keywords

Comments

Also primes of the form (2*n^3 - n^2 - n - 2)/2.

Examples

			a(2) = 109 since 5^3 - T(5) - 1 = 125 - 15 - 1 = 109, which is prime.
a(6) = 9029 since 21^3 - T(21) - 1 = 9261 - 231 - 1 = 9029 which is prime.
		

Crossrefs

Programs

  • Maple
    KD:= proc() local a,b,d; a:= n^3;b:=(1/2)*n*(n+1); d:=a-b-1; if isprime(d) then   RETURN(d): fi;end: seq(KD(),n=1..500);
  • Mathematica
    Select[Table[(n^3) - (n/2*(n + 1)) - 1, {n, 200}], PrimeQ]