login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A118917 Number of inequivalent primes in ring of integers Z[sqrt(2)] with absolute value of norm = n. 3

%I #10 Aug 30 2017 15:16:30

%S 0,0,1,0,0,0,0,2,0,1,0,0,0,0,0,0,0,2,0,0,0,0,0,2,0,1,0,0,0,0,0,2,0,0,

%T 0,0,0,0,0,0,0,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

%U 0,0,0,2,0,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0,0,2,0

%N Number of inequivalent primes in ring of integers Z[sqrt(2)] with absolute value of norm = n.

%C Since there are infinitely many units in Z[sqrt(2)], the total number of primes with a given norm is infinite (when there are any).

%H Antti Karttunen, <a href="/A118917/b118917.txt">Table of n, a(n) for n = 0..65537</a>

%F a(n) = 2 if n is a prime = 1,7 (mod 8); a(n) = 1 if n is 2 or p^2 where p is a prime = 3,5 (mod 8); otherwise a(n) = 0.

%t a[n_] := Which[PrimeQ[n] && MatchQ[Mod[n, 8], 1|7], 2, p = Sqrt[n]; n == 2 || IntegerQ[p] && PrimeQ[p] && MatchQ[Mod[p, 8], 3|5], 1, True, 0]; Table[a[n], {n, 0, 104}] (* _Jean-François Alcover_, Nov 22 2016 *)

%o (PARI) A118917(n) = { my(p); if(isprime(n)&&((1==(n%8))||(7==(n%8))), 2, if((2==n)||((issquare(n,&p)&&isprime(p))&&((3==(p%8))||(5==(p%8)))),1,0)); }; \\ _Antti Karttunen_, Aug 30 2017

%Y Cf. A055029, A118916.

%K easy,nice,nonn

%O 0,8

%A _Franklin T. Adams-Watters_, May 05 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 13:42 EDT 2024. Contains 371254 sequences. (Running on oeis4.)