OFFSET
1,9
COMMENTS
For n > 1, class number of the unique quadratic field with discriminant +-p, p = prime(n).
a(1) corresponds to Q(sqrt(2*i)) = Q(1+i) = Q(i).
All terms are odd.
LINKS
EXAMPLE
prime(9) = 23, Q(sqrt(-23)) has class number 3, so a(9) = 3.
prime(15) = 47, Q(sqrt(-47)) has class number 5, so a(15) = 5.
prime(20) = 71, Q(sqrt(-71)) has class number 7, so a(20) = 7.
prime(50) = 229, Q(sqrt(229)) has class number 3, so a(50) = 3.
PROG
(PARI) a(n) = if(n==1, 1, my(p=prime(n)); qfbclassno(if(p%4==1, p, -p)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jianing Song, Jul 20 2022
STATUS
approved