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.

A355879 Class number of Q(sqrt((-1)^((p-1)/2)*p)), where p = prime(n).

This page as a plain text file.
%I A355879 #14 Jul 20 2022 15:57:43
%S A355879 1,1,1,1,1,1,1,1,3,1,3,1,1,1,5,1,3,1,1,7,1,5,3,1,1,1,5,3,1,1,5,5,1,3,
%T A355879 1,7,1,1,11,1,5,1,13,1,1,9,3,7,5,3,1,15,1,7,3,13,1,11,1,1,3,1,3,19,1,
%U A355879 1,3,1,5,1,1,19,9,1,3,17,1,1,5,1,9,1,21,1,15,5,1,1,1,7
%N A355879 Class number of Q(sqrt((-1)^((p-1)/2)*p)), where p = prime(n).
%C A355879 For n > 1, class number of the unique quadratic field with discriminant +-p, p = prime(n).
%C A355879 a(1) corresponds to Q(sqrt(2*i)) = Q(1+i) = Q(i).
%C A355879 All terms are odd.
%H A355879 Jianing Song, <a href="/A355879/b355879.txt">Table of n, a(n) for n = 1..10000</a>
%H A355879 Wikipedia, <a href="http://en.wikipedia.org/wiki/Class_number_(number_theory)#Class_numbers_of_quadratic_fields">Class numbers of quadratic fields</a>
%H A355879 <a href="/index/Qua#quadfield">Index entries for sequences related to quadratic fields</a>
%e A355879 prime(9) = 23, Q(sqrt(-23)) has class number 3, so a(9) = 3.
%e A355879 prime(15) = 47, Q(sqrt(-47)) has class number 5, so a(15) = 5.
%e A355879 prime(20) = 71, Q(sqrt(-71)) has class number 7, so a(20) = 7.
%e A355879 prime(50) = 229, Q(sqrt(229)) has class number 3, so a(50) = 3.
%o A355879 (PARI) a(n) = if(n==1, 1, my(p=prime(n)); qfbclassno(if(p%4==1, p, -p)))
%Y A355879 Cf. A002143, A002146.
%K A355879 nonn
%O A355879 1,9
%A A355879 _Jianing Song_, Jul 20 2022