VOOZH about

URL: https://oeis.org/A091392

⇱ A091392 - OEIS


login
A091392
Product_{ p | n } (1 + Legendre(-2,p) ).
2
1, 1, 2, 1, 0, 2, 0, 1, 2, 0, 2, 2, 0, 0, 0, 1, 2, 2, 2, 0, 0, 2, 0, 2, 0, 0, 2, 0, 0, 0, 0, 1, 4, 2, 0, 2, 0, 2, 0, 0, 2, 0, 2, 2, 0, 0, 0, 2, 0, 0, 4, 0, 0, 2, 0, 0, 4, 0, 2, 0, 0, 0, 0, 1, 0, 4, 2, 2, 0, 0, 0, 2, 2, 0, 0, 2, 0, 0, 0, 0, 2, 2, 2, 0, 0, 2, 0, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 0, 4, 0, 0, 4, 0, 0, 0
OFFSET
1,3
LINKS
FORMULA
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 2*sqrt(2)/Pi = 0.900316... (A112628). - Amiram Eldar, Oct 17 2022
MAPLE
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, -2), n=1..120)];
MATHEMATICA
a[n_] := Times@@ (1+KroneckerSymbol[-2, #]& /@ FactorInteger[n][[All, 1]]);
Array[a, 105] (* Jean-François Alcover, Apr 08 2020 *)
PROG
(PARI) a(n)={my(f=factor(n)[, 1]); prod(i=1, #f, 1 + kronecker(-2, f[i]))} \\ Andrew Howroyd, Jul 23 2018
CROSSREFS
Sequence in context: A298731 A321102 A368199 * A036577 A317189 A220136
KEYWORD
nonn,mult
AUTHOR
N. J. A. Sloane, Mar 02 2004
STATUS
approved