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!)
A091395 a(n) = Product_{ p | n } (1 + Legendre(-7,p) ). 2

%I #15 Oct 17 2022 07:05:49

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

%T 0,0,2,0,0,0,0,0,2,4,0,4,0,0,1,0,0,0,2,0,0,2,0,4,0,0,0,0,0,2,0,0,2,0,

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

%N a(n) = Product_{ p | n } (1 + Legendre(-7,p) ).

%H Andrew Howroyd, <a href="/A091395/b091395.txt">Table of n, a(n) for n = 1..1000</a>

%F Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 7*sqrt(7)/(8*Pi) = 0.736897... . - _Amiram Eldar_, Oct 17 2022

%p with(numtheory); L := proc(n,N) local i,t1,t2; t1 := ifactors(n)[2]; t2 := mul((1+legendre(N,t1[i][1])),i=1..nops(t1)); end; [seq(L(n,-7),n=1..120)];

%t a[n_] := Times@@ (1+KroneckerSymbol[-7, #]& /@ FactorInteger[n][[All, 1]]);

%t Array[a, 105] (* _Jean-François Alcover_, Apr 08 2020 *)

%o (PARI) a(n)={my(f=factor(n)[,1]); prod(i=1, #f, 1 + kronecker(-7, f[i]))} \\ _Andrew Howroyd_, Jul 23 2018

%Y Cf. A091379, A175629.

%K nonn,mult

%O 1,2

%A _N. J. A. Sloane_, Mar 02 2004

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 August 31 01:57 EDT 2024. Contains 375550 sequences. (Running on oeis4.)