cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A177861 Product of the quadratic nonresidues of prime(n).

This page as a plain text file.
%I A177861 #2 Mar 30 2012 19:00:09
%S A177861 1,2,6,90,6720,36960,11642400,283046400,2412984420000,
%T A177861 1140422816332800,1226781977195174400,1863152400854384640000,
%U A177861 5988092802221559085056000,112886540292742916603904000,158983195607776600998537600000000
%N A177861 Product of the quadratic nonresidues of prime(n).
%C A177861 a(n) == (-1)^((p-1)/2) (mod p), if p = prime(n) is odd.
%D A177861 Carl-Erik Froeberg, On sums and products of quadratic residues, BIT, Nord. Tidskr. Inf.-behandl. 11 (1971) 389-398.
%H A177861 Rahul Gupta, <a href="http://www.cse.iitd.ernet.in/~sak/courses/ant/notes/ant.pdf">Algorithmic Number Theory, Section 24.5</a>
%F A177861 a(n) = (p-1)!/A177860(n), where p = prime(n).
%e A177861 The quadratic nonresidues of prime(4) = 7 are 3, 5, and 6, so a(4) = 3*5*6 = 90.
%t A177861 Table[ Apply[Times, Flatten[Position[ Table[JacobiSymbol[i, Prime[n]], {i, 1, Prime[n] - 1}], -1]]], {n, 1, 16}]
%Y A177861 A125615 Sum of the quadratic nonresidues of prime(n), A177860 Product of the quadratic residues of prime(n), A177863 Product of the quadratic nonresidues of prime(n) modulo prime(n).
%K A177861 easy,nonn
%O A177861 1,2
%A A177861 _Jonathan Sondow_, May 14 2010