OFFSET
1,8
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..12167
FORMULA
MATHEMATICA
s[n_] := s[n] = If[OddQ[n], -2*s[(n - 1)/2] - 1, 2*s[n/2]]; s[0] = 0; f[p_, e_] := p^If[OddQ[DigitCount[e, 2, 1]], 0, s[e]]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Sep 01 2023 *)
PROG
(Scheme, two variants)
(definec (A270419 n) (cond ((= 1 n) 1) (else (* (expt (A020639 n) (* (A010059 (A067029 n)) (- (A065620 (A067029 n))))) (A270419 (A028234 n))))))
(define (A270419 n) (denominator (A270418perA270419 n)))
(definec (A270418perA270419 n) (cond ((= 1 n) 1) (else (* (expt (A020639 n) (A065620 (A067029 n))) (A270418perA270419 (A028234 n))))))
(PARI) A270419(n)={n=factor(n); n[, 2]=apply(A065620, n[, 2]); denominator(factorback(n))} \\ M. F. Hasler, Apr 16 2018
KEYWORD
nonn,easy,frac,mult,changed
AUTHOR
Antti Karttunen, May 23 2016
STATUS
approved