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!)
A300828 Multiplicative with a(p^2) = 1, a(p^3) = -2 and a(p^e) = 0 when e = 1 or e > 3. 2
1, 0, 0, 1, 0, 0, 0, -2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, -2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, -2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,8
COMMENTS
Used for computing A208133.
LINKS
EXAMPLE
For n = 216 = 2^3 * 3^3, a(2^3) * a(3^3) = -2 * -2 = 4.
MATHEMATICA
f[p_, e_] := Switch[e, 2, 1, 3, -2, _, 0]; a[n_] := Times @@ f @@@ FactorInteger[n]; a[1] = 1; Array[a, 100] (* Amiram Eldar, Sep 05 2023 *)
PROG
(PARI) A300828(n) = { if(1==n, return(1)); my(val=1, v=factor(n), d=matsize(v)[1]); for(i=1, d, if(v[i, 2] < 2 || v[i, 2] > 3, return(0)); if (v[i, 2] == 3, val *= -2)); return(val); }; \\ R. J. Mathar, Antti Karttunen, Mar 21 2018
(Scheme, with memoization-macro definec)
(definec (A300828 n) (if (= 1 n) n (* (case (A067029 n) ((2) 1) ((3) -2) (else 0)) (A300828 (A028234 n)))))
CROSSREFS
Cf. A208133.
Sequence in context: A130713 A236619 A355627 * A297246 A297243 A297240
KEYWORD
sign,easy,mult
AUTHOR
Antti Karttunen, Mar 21 2018
STATUS
approved

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 April 23 01:19 EDT 2024. Contains 371906 sequences. (Running on oeis4.)