A073945 Numbers n such that n + pi(n) is a square.
0, 1, 6, 11, 18, 27, 37, 49, 63, 114, 159, 183, 210, 238, 268, 299, 333, 368, 405, 443, 484, 526, 571, 663, 714, 765, 820, 874, 931, 990, 1049, 1110, 1176, 1241, 1307, 1380, 1451, 1523, 1598, 1673, 1834, 1916, 2001, 2174, 2266, 2355, 2544, 2643, 2737, 2837
Offset: 1
Keywords
Examples
Since pi(6)=3 and 6+3=9 is a square, so 6 belongs to the sequence.
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..500
Programs
-
Maple
q:= n-> issqr(n+numtheory[pi](n)): select(q, [$0..3000])[]; # Alois P. Heinz, Oct 27 2021
-
Mathematica
Select[Range[0,3000],IntegerQ[Sqrt[#+PrimePi[#]]]&] (* Harvey P. Dale, Feb 01 2014 *)
-
PARI
isok(n) = issquare(n + primepi(n)); \\ Michel Marcus, Feb 01 2014
Extensions
I put "more" to indicate that the two subsidiary sequences should be detached and made into separate sequences. - N. J. A. Sloane.
Offset changed and terms prepended by Harvey P. Dale and Michel Marcus, Feb 01 2014
Offset 1 from Alois P. Heinz, Oct 27 2021
Comments