login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A073162
n is such that partial sum of pi(k) from 1 to n is divisible by n.
2
1, 3, 17, 37, 9107, 156335, 679083, 1068131, 4883039, 101691357
OFFSET
1,2
COMMENTS
a(11) > 10^12. - Donovan Johnson, Mar 19 2011
a(11) > 10^13. - Lucas A. Brown, Oct 05 2020
FORMULA
Solutions to Mod[A046992(x), x]=0
EXAMPLE
a(3) = 17 because 0+1+2+2+3+3+4+4+4+4+5+5+6+6+6+6+7 = 68 = 4*17.
MATHEMATICA
s = 0; Do[s = s + PrimePi[n]; If[ IntegerQ[s/n], Print[{n, s, s/n}]], {n, 1, 10^8}]
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Labos Elemer, Jul 18 2002
EXTENSIONS
Edited and extended by Robert G. Wilson v, Jul 20 2002
a(10) from Donovan Johnson, Dec 15 2009
STATUS
approved