Package de.tilman_neumann.jml.sequence
Class SquarefreeSequence
- java.lang.Object
-
- de.tilman_neumann.jml.sequence.SquarefreeSequence
-
- All Implemented Interfaces:
NumberSequence<BigInteger>
public class SquarefreeSequence extends Object implements NumberSequence<BigInteger>
Sequence of multiplier * {squarefree numbers 1,2,3,5,6,7,10,11,13,...}, BigInteger implementation.- Author:
- Tilman Neumann
-
-
Constructor Summary
Constructors Constructor Description SquarefreeSequence(long multiplier)SquarefreeSequence(BigInteger multiplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()static voidmain(String[] args)BigIntegernext()voidreset()Reset sequence so that it starts again with its first element.
-
-
-
Constructor Detail
-
SquarefreeSequence
public SquarefreeSequence(long multiplier)
-
SquarefreeSequence
public SquarefreeSequence(BigInteger multiplier)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceNumberSequence<BigInteger>- Returns:
- the name of this sequence generator
-
reset
public void reset()
Description copied from interface:NumberSequenceReset sequence so that it starts again with its first element.- Specified by:
resetin interfaceNumberSequence<BigInteger>
-
next
public BigInteger next()
- Specified by:
nextin interfaceNumberSequence<BigInteger>- Returns:
- the next integer
-
main
public static void main(String[] args)
-
-