OFFSET
1,1
LINKS
Steven R. Finch, Average least nonresidues, December 4, 2013. [Cached copy, with permission of the author]
Steven R. Finch, Mathematical Constants II, Encyclopedia of Mathematics and Its Applications, Cambridge University Press, Cambridge, 2018, p. 251.
G. Martin and P. Pollack, The average least character non-residue and further variations on a theme of Erdős, J. London Math. Soc. 87 (2013) 22-42.
FORMULA
sum_{q} q^4/((q+1)^2 (q-1)) prod_{p<q} (p^2-p-1)/((p+1)^2 (p-1)), where p, q are primes.
EXAMPLE
2.1514351056861465486242810050965840532633...
MATHEMATICA
digits = 101; Clear[s, P]; P[j_] := P[j] = Product[(Prime[k]^2 - Prime[k] - 1)/((Prime[k] + 1)^2*(Prime[k] - 1)), {k, 1, j - 1}] // N[#, digits + 100]&; s[m_] := s[m] = Sum[Prime[j]^4/((Prime[j] + 1)^2*(Prime[j] - 1))*P[j], {j, 1, m}]; s[10]; s[m = 20]; While[ RealDigits[s[m]] != RealDigits[s[m/2]], Print[m, " ", N[s[m]]]; m = 2*m]; RealDigits[s[m], 10, digits] // First
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
Jean-François Alcover, Oct 24 2014
STATUS
approved