The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A197881 Number of times n occurs in A197863. 1
1, 0, 0, 2, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 4, 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, 1, 0, 0, 0, 0, 0, 0, 0, 2, 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, 4, 0, 0, 0, 0, 0, 0, 0, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
FORMULA
Multiplicative with a(p^e) = 0 if e = 1, 2 if e = 2, and 1 otherwise.
MATHEMATICA
f[p_, e_] := Switch[e, 1, 0, 2, 2, _, 1]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Aug 28 2023 *)
PROG
(PARI) a(n)=my(es=factor(n)[, 2]~); prod(k=1, #es, if(es[k]==1, 0, if(es[k]==2, 2, 1)))
(Scheme) (define (A197881 n) (cond ((= 1 n) n) (else (* (case (A067029 n) ((1) 0) ((2) 2) (else 1)) (A197881 (A028234 n)))))) ;; Antti Karttunen, Jul 23 2017
CROSSREFS
Sequence in context: A025086 A035699 A132406 * A332712 A079126 A339086
KEYWORD
nonn,easy,mult
AUTHOR
EXTENSIONS
More terms from Antti Karttunen, Jul 23 2017
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 June 8 17:52 EDT 2024. Contains 373227 sequences. (Running on oeis4.)