a(n) is the difference between the smallest square greater than prime(n) and the largest square less than prime(n), where prime(n) = A000040(n) is the n-th prime number.

A117767

a(n) is the difference between the smallest square greater than prime(n) and the largest square less than prime(n), where prime(n) = A000040(n) is the n-th prime number.

Terms

    a(0) =3a(1) =3a(2) =5a(3) =5a(4) =7a(5) =7a(6) =9a(7) =9a(8) =9a(9) =11a(10) =11a(11) =13a(12) =13a(13) =13a(14) =13a(15) =15a(16) =15a(17) =15a(18) =17a(19) =17a(20) =17a(21) =17a(22) =19a(23) =19a(24) =19a(25) =21a(26) =21a(27) =21a(28) =21a(29) =21

External references