A024702 a(n) = (prime(n)^2 - 1)/24.
1, 2, 5, 7, 12, 15, 22, 35, 40, 57, 70, 77, 92, 117, 145, 155, 187, 210, 222, 260, 287, 330, 392, 425, 442, 477, 495, 532, 672, 715, 782, 805, 925, 950, 1027, 1107, 1162, 1247, 1335, 1365, 1520, 1552, 1617, 1650, 1855, 2072, 2147, 2185, 2262, 2380, 2420, 2625, 2752, 2882, 3015
Offset: 3
Examples
For n = 6, the 6th prime is 13, so a(6) = (13^2 - 1)/24 = 168/24 = 7.
Links
- Charles R Greathouse IV, Table of n, a(n) for n = 3..10000
- Brady Haran and Matt Parker, Squaring Primes, Numberphile video (2018).
- Carlos Rivera, Puzzle 1060. Can you find more solutions?, The Prime Puzzles and Problems Connection. [Asks for squares in this sequence]
Programs
-
Maple
A024702:=n->(ithprime(n)^2-1)/24: seq(A024702(n), n=3..70); # Wesley Ivan Hurt, Mar 01 2015
-
Mathematica
(Prime[Range[3,100]]^2-1)/24 (* Vladimir Joseph Stephan Orlovsky, Mar 15 2011 *)
-
PARI
a(n)=prime(n)^2\24 \\ Charles R Greathouse IV, May 30 2013
-
PARI
is(n)=my(k);issquare(24*n+1,&k)&&isprime(k) \\ Charles R Greathouse IV, May 31 2013
Formula
a(n) = A084920(n)/24. - R. J. Mathar, Aug 23 2013
Comments