[go: up one dir, main page]

login
Revision History for A282727 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Let p = n-th prime == 3 mod 8; a(n) = (sum of quadratic residues mod p that are < p/2) + (sum of all quadratic residues mod p).
(history; published version)
#33 by Michel Marcus at Sun Mar 21 13:06:34 EDT 2021
STATUS

reviewed

approved

#32 by Joerg Arndt at Sun Mar 21 13:04:15 EDT 2021
STATUS

proposed

reviewed

#31 by Michel Marcus at Sun Mar 21 04:22:45 EDT 2021
STATUS

editing

proposed

#30 by Michel Marcus at Sun Mar 21 04:22:40 EDT 2021
LINKS

Christian Aebi, and Grant Cairns, <a href="http://arxiv.org/abs/1512.00896">Sums of Quadratic residues and nonresidues</a>, arXiv:1512.00896 [math.NT], 2015.

STATUS

proposed

editing

#29 by F. Chapoton at Sun Mar 21 04:16:26 EDT 2021
STATUS

editing

proposed

#28 by F. Chapoton at Sun Mar 21 04:16:19 EDT 2021
PROG

def v(x, r):

def v(x, r): return 2*x if x<=r else x

.... r=(p - 1)//2

.... return sum([v((j**2)%p, r) for j in range(1, r + 1)])

print ([a(p) for p in range(3, 2001, 8) if isprime(p)] ) # Indranil Ghosh, Mar 27 2017 translated from Robert Israel's Maple program

STATUS

approved

editing

Discussion
Sun Mar 21
04:16
F. Chapoton: adapt py code to py3
#27 by N. J. A. Sloane at Sat Dec 07 12:18:28 EST 2019
PROG

....return sum([v((j**2)%p, r) for j in xrangerange(1, r + 1)])

print [a(p) for p in xrangerange(3, 2001, 8) if isprime(p)] # Indranil Ghosh, Mar 27 2017 translated from Robert Israel's Maple program

Discussion
Sat Dec 07
12:18
OEIS Server: https://oeis.org/edit/global/2837
#26 by Alois P. Heinz at Mon Nov 27 11:35:49 EST 2017
STATUS

proposed

approved

#25 by Jean-François Alcover at Mon Nov 27 11:32:32 EST 2017
STATUS

editing

proposed

#24 by Jean-François Alcover at Mon Nov 27 11:32:25 EST 2017
MATHEMATICA

v[x_, r_] := If[x <= r, 2*x, x];

f[p_] := Module[{r}, r = (p-1)/2; Sum[v[PowerMod[j, 2, p], r], {j, 1, r}]];

f /@ Select[Range[3, 1000, 8], PrimeQ] (* Jean-François Alcover, Nov 27 2017, after Robert Israel *)

STATUS

approved

editing