chunky v0.11.4 Chunky.Sequence.OEIS.Primes View Source
OEIS Sequences dealing with Primes. For related sequences, see Chunky.Sequences.OEIS.Factors
Available Sequences
Link to this section Summary
Functions
OEIS Sequence A162511
- Multiplicative function with a(p^e)=(-1)^(e-1)
Link to this section Functions
OEIS Sequence A162511
- Multiplicative function with a(p^e)=(-1)^(e-1)
From OEIS A162511:
Multiplicative function with a(p^e)=(-1)^(e-1)
Sequence IDs: :a162511
Finite: False
Offset: 1
Example
iex> Sequence.create(Elixir.Chunky.Sequence.OEIS.Primes, :a162511) |> Sequence.take!(92)
[1,1,1,-1,1,1,1,1,-1,1,1,-1,1,1,1,-1,1,-1,1,-1,1,1,1,1,-1,1,1,-1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,1,1,-1,-1,-1,1,-1,1,1,1,1,1,1,1,-1,1,1,-1,-1,1,1,1,-1,1,1,1,-1,1,1,-1,-1,1,1,1,-1,-1,1,1,-1,1,1,1,1,1,-1,1,-1]