OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537 (first 1000 terms from Andrew Howroyd)
FORMULA
a(n) = denominator(n*A317848(n)/A165825(n)) = A165825(n)/(A037445(n) * A006519(n)). - Andrew Howroyd, Aug 09 2018
From Antti Karttunen, Sep 03 2018: (Start)
a(n) = 2^A318440(n).
(End)
EXAMPLE
Sequence begins: 1, 1, 3/2, 3/2, 5/2, 3/2, 7/2, 5/2, 27/8, 5/2, 11/2, 9/4, 13/2, 7/2.
MATHEMATICA
nn=50;
sys=Table[n==Sum[a[d]*a[n/d], {d, Divisors[n]}], {n, nn}];
Denominator[Array[a, nn]/.Solve[sys, Array[a, nn]][[2]]]
f[p_, e_] := 2^((1 + Mod[p, 2])*e - DigitCount[e, 2, 1]); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Apr 28 2023 *)
PROG
(PARI) a(n)={my(v=factor(n)[, 2]); denominator(n*prod(i=1, #v, my(e=v[i]); binomial(2*e, e)/4^e))} \\ Andrew Howroyd, Aug 09 2018
(PARI) A299150(n) = { my(f = factor(n), m=1); for(i=1, #f~, m *= 2^(((1+(f[i, 1]%2))*f[i, 2]) - hammingweight(f[i, 2]))); (m); }; \\ Antti Karttunen, Sep 03 2018
CROSSREFS
KEYWORD
nonn,frac,mult
AUTHOR
Gus Wiseman, Feb 03 2018
EXTENSIONS
Keyword:mult added by Andrew Howroyd, Aug 09 2018
STATUS
approved