For n >= 1, a(n) is the least prime p such that the arithmetic mean of (n + 1) consecutive primes starting with p is a perfect square, or a(n) = -1 if no such p exists.

A365706

For n >= 1, a(n) is the least prime p such that the arithmetic mean of (n + 1) consecutive primes starting with p is a perfect square, or a(n) = -1 if no such p exists.

Terms

    a(0) =3a(1) =2393a(2) =5a(3) =827a(4) =53a(5) =271a(6) =1063a(7) =23993a(8) =197a(9) =29a(10) =193a(11) =2143a(12) =359a(13) =6829a(14) =397a(15) =17a(16) =433a(17) =661a(18) =2837a(19) =25171a(20) =13597a(21) =563a(22) =10301a(23) =1814233a(24) =51427a(25) =6781a(26) =316817a(27) =7477a(28) =71a(29) =238919

External references